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 c743651 commit 715ea1dCopy full SHA for 715ea1d
rest_framework/utils/timezone.py
@@ -1,7 +1,7 @@
1
from datetime import datetime, timezone, tzinfo
2
3
4
-def datetime_exists(dt: datetime) -> bool:
+def datetime_exists(dt) -> bool:
5
"""Check if a datetime exists. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html"""
6
# There are no non-existent times in UTC, and comparisons between
7
# aware time zones always compare absolute times; if a datetime is
0 commit comments