diff --git a/airflow/serialization/serialized_objects.py b/airflow/serialization/serialized_objects.py index ccd4022953b0e..87ee4d4a73be6 100644 --- a/airflow/serialization/serialized_objects.py +++ b/airflow/serialization/serialized_objects.py @@ -168,7 +168,7 @@ def encode_timezone(var: Timezone | FixedTimezone) -> str | int: ) -def decode_timezone(var: str | int): +def decode_timezone(var: str | int) -> Timezone | FixedTimezone: """Decode a previously serialized Pendulum Timezone.""" return parse_timezone(var)