Skip to content

Commit

Permalink
Fix typing for 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinKlaesRackspace committed Jan 23, 2025
1 parent 735b5ea commit d37edb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydanticrud/backends/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def rule_to_boto_expression(rule: Rule, keys: Optional[Set[str]] = None):
}


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

0 comments on commit d37edb1

Please sign in to comment.