We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c632e commit 57d0eb6Copy full SHA for 57d0eb6
pydanticrud/backends/dynamodb.py
@@ -72,7 +72,7 @@ def rule_to_boto_expression(rule: Rule, keys: Optional[Set[str]] = None):
72
}
73
74
75
-def _to_epoch_decimal(dt: datetime | float) -> Decimal:
+def _to_epoch_decimal(dt: Union[datetime, float]) -> Decimal:
76
"""TTL fields must be stored as a float but boto only supports decimals."""
77
if type(dt) is datetime:
78
val = dt.timestamp()
0 commit comments