We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 644bab5 commit f43a886Copy full SHA for f43a886
test/test_00_validate.py
@@ -355,10 +355,11 @@ def test_numpy_array() -> None:
355
]
356
357
])
358
- validate(val, npt.NDArray[np.number[typing.Any]])
359
- validate(val, npt.NDArray[np.integer[typing.Any]])
360
- validate(val, npt.NDArray[np.unsignedinteger[typing.Any]])
361
- validate(val, npt.NDArray[np.generic])
+ if sys.version_info[1] >= 9:
+ validate(val, npt.NDArray[np.number[typing.Any]])
+ validate(val, npt.NDArray[np.integer[typing.Any]])
+ validate(val, npt.NDArray[np.unsignedinteger[typing.Any]])
362
+ validate(val, npt.NDArray[np.generic])
363
364
def test_numpy_array_error() -> None:
365
# pylint: disable = import-outside-toplevel
0 commit comments