Skip to content

Commit

Permalink
remove unneeded type hint cast
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 26, 2021
1 parent 3c8fe42 commit 0de2df1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/georinex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,10 @@ def _tlim(tlim: tuple[datetime, datetime] = None) -> tuple[datetime, datetime]:
elif len(tlim) == 2 and isinstance(tlim[0], datetime):
pass
elif len(tlim) == 2 and isinstance(tlim[0], str):
tlim = T.cast(tuple[str, str], tlim)
tlim = (parse(tlim[0]), parse(tlim[1]))
else:
raise ValueError(f"Not sure what time limits are: {tlim}")

tlim = T.cast(tuple[datetime, datetime], tlim)
return tlim


Expand Down

0 comments on commit 0de2df1

Please sign in to comment.