From d054bb74d180e5347136507d87b512bf9974ad03 Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Tue, 8 Aug 2023 22:48:46 -0800 Subject: [PATCH] Explicitly define union --- geoutils/_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoutils/_typing.py b/geoutils/_typing.py index 34d94108..4890766e 100644 --- a/geoutils/_typing.py +++ b/geoutils/_typing.py @@ -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: