Skip to content

Commit

Permalink
Update type annotation in get_finite_datetime_ranges_from_timestamps
Browse files Browse the repository at this point in the history
Before this change, the finite_datetime_range argument to this
function had the type FiniteDatetimeRange.

The function doesn't use any of the methods from that class and works
when called on objects of its parent type
FiniteRange[datetime.datetime], so this change updates the type
annotation to reflect that.
  • Loading branch information
con-cat committed Jan 26, 2023
1 parent 4c81195 commit 764ca40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xocto/ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ def days(self) -> int:


def get_finite_datetime_ranges_from_timestamps(
finite_datetime_range: FiniteDatetimeRange,
finite_datetime_range: FiniteRange[datetime.datetime],
timestamps: list[datetime.datetime],
) -> Sequence[FiniteDatetimeRange]:
"""
Expand Down

0 comments on commit 764ca40

Please sign in to comment.