mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-02 19:40:10 +03:00
Remove support for NumPy 1.20 when type checking (#9125)
This commit is contained in:
commit
baaccda280
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user