machinalis / mypy-data

mypy typesheds for the Python data stack
BSD 3-Clause "New" or "Revised" License
86 stars 23 forks source link

Issue with longdouble in numpy #27

Open rpgoldman opened 6 years ago

rpgoldman commented 6 years ago

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