Skip to content

Commit 715ea1d

Browse files
authored
Update rest_framework/utils/timezone.py
1 parent c743651 commit 715ea1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/utils/timezone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from datetime import datetime, timezone, tzinfo
22

33

4-
def datetime_exists(dt: datetime) -> bool:
4+
def datetime_exists(dt) -> bool:
55
"""Check if a datetime exists. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html"""
66
# There are no non-existent times in UTC, and comparisons between
77
# aware time zones always compare absolute times; if a datetime is

0 commit comments

Comments
 (0)