Skip to content

Commit 56b4ce2

Browse files
Update rest_framework/utils/timezone.py
1 parent 2f288fc commit 56b4ce2

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
@@ -18,6 +18,6 @@ def datetime_ambiguous(dt):
1818
)
1919

2020

21-
def valid_datetime(dt) -> bool:
21+
def valid_datetime(dt):
2222
"""Returns True if the datetime is not ambiguous or imaginary, False otherwise."""
2323
return isinstance(dt.tzinfo, tzinfo) and not datetime_ambiguous(dt)

0 commit comments

Comments
 (0)