Skip to content

Commit df75e8f

Browse files
committed
Format and readme update
1 parent 9c868d8 commit df75e8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,11 @@ The default data converter supports converting multiple types including:
316316
* Iterables including ones JSON dump may not support by default, e.g. `set`
317317
* [IntEnum, StrEnum](https://docs.python.org/3/library/enum.html) based enumerates
318318
* [UUID](https://docs.python.org/3/library/uuid.html)
319+
* `datetime.datetime`
319320

320321
To use pydantic model instances, see [Pydantic Support](#pydantic-support).
321322

322-
`datetime.date`, `datetime.time`, and `datetime.datetime` can only be used with the Pydantic data converter.
323+
`datetime.date` and `datetime.time` can only be used with the Pydantic data converter.
323324

324325
Although workflows, updates, signals, and queries can all be defined with multiple input parameters, users are strongly
325326
encouraged to use a single `dataclass` or Pydantic model parameter, so that fields with defaults can be easily added

tests/test_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import traceback
99
from collections import deque
1010
from dataclasses import dataclass
11-
from datetime import datetime, timezone, timedelta
11+
from datetime import datetime, timedelta, timezone
1212
from enum import Enum, IntEnum
1313
from typing import (
1414
Any,

0 commit comments

Comments
 (0)