[Numpy-discussion] Re: mypy false positives

2022-01-07 Thread Vincent Schut
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

[Numpy-discussion] Re: mypy false positives

2022-01-07 Thread bas van beek
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.