TYP: dtype specializations for np.ndarray in algos.pyi (part)
cc @jbrockmendel 
neat!  ill have to go through and double-check the exact dtypes, but this looks really nice Thanks. The obvious place to start is the libraries then propagate these up.

I'm struggling to get mypy failures. static type checking checks type compatibility whereas the cython is specialized for specific dtypes.

 i take it npt.NDArray doesnt allow for specifying ndim? needs rebase, otherwise i think this is an improvement even if you're having trouble producing errors can you rebase @simonjayhawkins what are your plans here?  i was thinking of doing a pass updating the _libs ndarray annotations > @simonjayhawkins what are your plans here? i was thinking of doing a pass updating the _libs ndarray annotations

you are welcome to pull these changes into another branch.

(or I can fix-up this PR. I did not think it was appropriate to work on typing PRs while there are typing PRs from others that need review)  > I did not think it was appropriate to work on typing PRs while there are typing PRs from others that need review

thats thoughtful of you, but no one will hold it against you