mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-02 19:40:10 +03:00
Removed support for NumPy 1.20 when type checking
This commit is contained in:
parent
98d6c3bf88
commit
ae6bb29b82
|
@ -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