Skip to content
Discussion options

You must be logged in to vote

I'm not able to repro the problem as reported. Is it possible you have an old numpy stub package installed? If you right click on the word "typing" in the statement import numpy.typing as npt and choose "Go To Declaration", where does it take you? It should take you to site-packages/numpy/typing/__init__.py.

Here are a few other things you can try to narrow down the problem.

  1. Try to repro with a fresh venv with no packages installed other than numpy.
  2. Create a pyrightconfig.json file in your project root and add { "verboseOutput": true } to it. This will cause additional import resolution details to be logged to the "Output" tab in VS Code.

BTW, if you're using pyright with VS Code, we re…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Tseyang
Comment options

@andrewkittredge
Comment options

@Gideon-Felt
Comment options

Answer selected by Tseyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants