Hi all,
I've got a question about numpy typing. We have our own internal
codebase that heavily depends on numpy, and we're trying to get the
number of mypy errors down. Many of the remaining mypy errors are
actually numpy false positives. I hoped that with the numpy 1.22.0
release these would
Hi Vincent,
Could it be that you're overriding numpy's type annotations with those from an
external stub-only package?
The functions that you mentioned have been annotated as being in the main
namespace ever since the 1.20 release;
the error message for `finfo` in particular makes me suspicious.
Hi Bas,
thank you! I checked and indeed: I was surprised to see the outdated
"data-science-types" package installed. I removed it and the amount of
mypy errors decreased dramatically. I'm so glad I asked, I already spent
way too much time at googling ;-)
Thanks again for the fast and accurat