mypy-data
mypy-data copied to clipboard
mypy typesheds for the Python data stack
It would be great if you could add your numpy stubs to `Typeshed`. https://github.com/python/typeshed/tree/master/stdlib/2and3 You have already written the most useful parts of the numpy stub and could just use...
- added explicit abc.ABCMeta metaclass for flatiter (closes #26)
As a NumPy developer and user, I would love to see this happen. I can't promise I'll have the time to make this happen on my own, but I certainly...
I have this in some code: ``` logarr = np.fromiter(loglist, np.longdouble, -1) ``` which causes problems when using the numpy stubs: ``` simple_model_kl.py:20: error: Module has no attribute "longdouble" ```...
When I use mypy with these stubs (python 3.6, MacOS) I get this (cryptic) message: ``` stubs/numpy/__init__.pyi:48: error: Class numpy.flatiter has abstract attributes "__next__" stubs/numpy/__init__.pyi:48: note: If it is meant...
Hi, Is this project still alive? I noticed that there were some errors (_e.g._, `flatiter` does not specify `__next__` _etc._). Should we submit the fixes here as a pull request...
Getting a scalar from a numpy array does not seem to be supported. ``` import numpy b : float = float(numpy.array(1)) ``` with mypy gets the error: ``` error: Argument...
I'm getting an error when I try to iterate over an numpy array: ``` error: Iterable expected ``` Do we need the main class to also inherit `Iterable`?
I've added a few common methods and also added many ArrayLike methods to the ndarray class to return ndarray. Also ndarray subclasses the Sized type for len(ndarray) to not raise...