Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

How do you use this package? #40

Closed
geiszla opened this issue Mar 1, 2020 · 3 comments
Closed

How do you use this package? #40

geiszla opened this issue Mar 1, 2020 · 3 comments

Comments

@geiszla
Copy link

geiszla commented Mar 1, 2020

I can't find any information on how to install this package to a local workspace. I tried installing the git repo via pip, but mypy still complains when I try to use it ("ndarray" expects no type arguments, but 1 given). I know this is an experimental project, but can I use the parts that are done so far?

@mikolajz
Copy link

mikolajz commented Mar 8, 2020

FWIW it works for me when install by pip from git repo. Maybe if you included a short snippet of code that doesn't work for you? Then we could check if it works for others.

@person142
Copy link
Member

Yes, installing from the repo is the only way to use the stubs for now. From your particular error it sounds like you are trying to do something like ndarray[np.int64], which is not supported yet. See e.g. https://github.com/numpy/numpy-stubs/issues/7 and #48 for more context.

@person142
Copy link
Member

(Closing as I believe the question has been answered.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants