You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use ndarray often in our annotations, but it always just resolves to Any since it doesn't have any annotations natively. It looks like numpy has a separate Numpy-stubs repo under development:
MIght be a pipedream, but it would be nice if we could have numpy annotations consistent with the existing cython syntax, e.g. ndarray[np.float64, ndim=1]. Both for the consistency and the specificity.
Yes, it's much bigger project to figure out a type system from
multidimensional arrays. Some of the mypy devs are working on it.
.
Right now numpy-stubs could use some love. It would be great to get some
contributions there.
On Mon, Jul 29, 2019 at 8:07 AM jbrockmendel ***@***.***> wrote:
MIght be a pipedream, but it would be nice if we could have numpy
annotations consistent with the existing cython syntax, e.g. ndarray[np.float64,
ndim=1]. Both for the consistency and the specificity.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27589?email_source=notifications&email_token=AAJJFVWS2Q6SFVOUM3JDU3LQB4BSZA5CNFSM4IG4OGPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3BAIKA#issuecomment-516031528>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJJFVTIPFJ2WCQS5NUBP3TQB4BSZANCNFSM4IG4OGPA>
.
We use ndarray often in our annotations, but it always just resolves to
Any
since it doesn't have any annotations natively. It looks like numpy has a separate Numpy-stubs repo under development:https://github.com/numpy/numpy-stubs
Might be worth considering that as a development dependency. Certainly would like to find issues with ndarray usage sooner than later
@shoyer
The text was updated successfully, but these errors were encountered: