Remove support for NumPy 1.20 when type checking (#9125)

This commit is contained in:
Hugo van Kemenade 2025-08-02 12:59:06 +03:00 committed by GitHub
commit baaccda280
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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