You could check out nptyping:
from nptyping import NDArray, Bool
def foo(bar: NDArray[Bool]):
...
Or you could just use strings for type hints:
def foo(bar: 'np.ndarray[np.bool]'):
...
You could check out nptyping:
from nptyping import NDArray, Bool
def foo(bar: NDArray[Bool]):
...
Or you could just use strings for type hints:
def foo(bar: 'np.ndarray[np.bool]'):
...