Skip to content

Commit

Permalink
Update airflow/serialization/serialized_objects.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
  • Loading branch information
Taragolis and uranusjr committed Dec 25, 2023
1 parent 3e7f50e commit 2be8e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/serialization/serialized_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2be8e29

Please sign in to comment.