Skip to content

Commit baaccda

Browse files
authored
Remove support for NumPy 1.20 when type checking (#9125)
2 parents 98d6c3b + ae6bb29 commit baaccda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PIL/_typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
try:
1313
import numpy.typing as npt
1414

15-
NumpyArray = npt.NDArray[Any] # requires numpy>=1.21
16-
except (ImportError, AttributeError):
15+
NumpyArray = npt.NDArray[Any]
16+
except ImportError:
1717
pass
1818

1919
if sys.version_info >= (3, 13):

0 commit comments

Comments
 (0)