From 4a70c9da1c094b3c8d0b9f408c163aa3a4ffdcb3 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 21 Mar 2025 12:31:41 +0000 Subject: [PATCH] Update rest_framework/utils/timezone.py --- rest_framework/utils/timezone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/utils/timezone.py b/rest_framework/utils/timezone.py index f41dc4dea..b1fbd9ebe 100644 --- a/rest_framework/utils/timezone.py +++ b/rest_framework/utils/timezone.py @@ -9,7 +9,7 @@ def datetime_exists(dt) -> bool: return dt.astimezone(timezone.utc) == dt -def datetime_ambiguous(dt: datetime) -> bool: +def datetime_ambiguous(dt) -> bool: """Check whether a datetime is ambiguous. Taken from: https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html""" # If a datetime exists and its UTC offset changes in response to # changing `fold`, it is ambiguous in the zone specified.