CI/TYP: run pyright at manual stage in pre-commit
with numpy<1.21.0 pyright (and mypy?) cannot determine some types which leads to overlapping overloads. See https://github.com/pandas-dev/pandas/pull/43747#issuecomment-930343454

@attack68 

we cannot bump this now. needs to be a while. (you *could* do it for the pyright checking i suppose) but that might be complicated. > we cannot bump this now. needs to be a while.

Definitly not for a release but not even for development? 

> (you _could_ do it for the pyright checking i suppose) but that might be complicated.

Pre-commit allows specifying additional dependencies for a hook, but it seems they need to be from the same language as the hook (pyright: node, numpy: python).

I think the best options is to run pyright at the "manual" stage to avoid annoying contributors. This would still make it possible to easily run pyright.


 Mypy also needs 1.21.0, otherwise it reports many errors. thanks @twoertwein yep having to manualish now is fine