mypy-data icon indicating copy to clipboard operation
mypy-data copied to clipboard

Issue with longdouble in numpy

Open rpgoldman opened this issue 6 years ago • 0 comments

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"

I think it's correct to just add

class longdouble(floating): ...

to __init__.pyi

rpgoldman avatar Aug 09 '18 15:08 rpgoldman