BUG: fix an incompatibility with numpy 1.20

This commit is contained in:
Clément Robert 2024-07-01 19:16:13 +02:00
parent 8c26622ee7
commit b4ee967372

View File

@ -7,8 +7,8 @@ from typing import Any, Protocol, Sequence, TypeVar, Union
try:
import numpy.typing as npt
NumpyArray = npt.NDArray[Any]
except ImportError:
NumpyArray = npt.NDArray[Any] # requires numpy>=1.21
except (ImportError, AttributeError):
pass
if sys.version_info >= (3, 10):