Skip to content

Commit 57d0eb6

Browse files
Fix typing for 3.9
1 parent 45c632e commit 57d0eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydanticrud/backends/dynamodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def rule_to_boto_expression(rule: Rule, keys: Optional[Set[str]] = None):
7272
}
7373

7474

75-
def _to_epoch_decimal(dt: datetime | float) -> Decimal:
75+
def _to_epoch_decimal(dt: Union[datetime, float]) -> Decimal:
7676
"""TTL fields must be stored as a float but boto only supports decimals."""
7777
if type(dt) is datetime:
7878
val = dt.timestamp()

0 commit comments

Comments
 (0)