Closed
Description
Describe the issue:
Hello lovely people :)
please check the title for a description of the issue at hand.
Thanks for your great work!
Reproduce the code example:
import numpy as np
np.polynomial.Polynomial.fit([1, 2, 3], [1, 2, 3], deg=1)
Error message:
numpy_demo.py:2: error: Call to untyped function "fit" of "ABCPolyBase" in typed context [no-untyped-call]
Python and NumPy Versions:
1.24.4
3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
Runtime Environment:
Mypy via pre-commit: 6e63c9e9c65e1df04465cdcda0f2490e89291f58 -> v1.9.0 (frozen)
args:
- --show-error-codes
- --strict
- --warn-unused-ignores
- --warn-redundant-cast
- --warn-unreachable
Numpy mypy plugin enabled (but does influence behavior here)
[tool.mypy]
mypy_path = "src"
plugins = "numpy.typing.mypy_plugin"
Context for the issue:
We use strict typing with mypy on all our code and this necessitates lots of # type: ignore[no-untyped-call]
exceptions.