Skip to content

Commit

Permalink
Fix date_range dict annotation
Browse files Browse the repository at this point in the history
Co-Authored-By: Jessica Scheick <[email protected]>
  • Loading branch information
mfisher87 and JessicaS11 committed Sep 26, 2024
1 parent 094d3f0 commit 97a5544
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions icepyx/core/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def validate_date_range_date(


def validate_date_range_dict(
date_range: dict[str, dt.date],
date_range: dict[str, Union[str, dt.datetime]],
start_time: Union[str, dt.time, None] = None,
end_time: Union[str, dt.time, None] = None,
) -> tuple[dt.datetime, dt.datetime]:
Expand Down Expand Up @@ -303,7 +303,6 @@ def validate_date_range_dict(
>>> valid_drange = validate_date_range_dict(drange, "00:00:00", "23:59:59")
>>> valid_drange
(datetime.datetime(2016, 1, 1, 0, 0), datetime.datetime(2020, 1, 1, 23, 59, 59))
"""

# Try to get keys from date_range dict
Expand Down

0 comments on commit 97a5544

Please sign in to comment.