import numpy as np import numpy.typing as npt x = np.array([1, 2, 3]) def foo(x: npt.NDArray[np.int_]) -> bool: return True