Skip to content

Commit

Permalink
Explicitly define union
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Aug 9, 2023
1 parent dad7526 commit d054bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoutils/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np

# Mypy has issues with the builtin Number type (https://github.com/python/mypy/issues/3186)
Number = int | float | np.integer[Any] | np.floating[Any]
Number = Union[int, float, np.integer[Any], np.floating[Any]]

# Only for Python >= 3.9
if sys.version_info.minor >= 9:
Expand Down

0 comments on commit d054bb7

Please sign in to comment.