Removed support for NumPy 1.20 when type checking

This commit is contained in:
Andrew Murray 2025-08-02 18:35:16 +10:00
parent 98d6c3bf88
commit ae6bb29b82

View File

@ -12,8 +12,8 @@ if TYPE_CHECKING:
try: try:
import numpy.typing as npt import numpy.typing as npt
NumpyArray = npt.NDArray[Any] # requires numpy>=1.21 NumpyArray = npt.NDArray[Any]
except (ImportError, AttributeError): except ImportError:
pass pass
if sys.version_info >= (3, 13): if sys.version_info >= (3, 13):