Numpy type overloading
I’d like to add typehints to a function that accepts either np.float32
arrays or np.float64
arrays and returns the same type:
Cannot reproduce numpy.typing.NBitBase example with `numpy.typing.mypy_plugin`
I am having trouble getting the numpy.typing.mypy_plugin
to work.
Following the example of how to use NBitBase
, I get different output from mypy.
NumPy Returning Any from function error using mypy
When I run mypy main.py --strict
on