-
|
I've recently picked up using pyright and have been loving its integration with VSCode so far. I'm running into an issue with For context, the file has: import logging
import numpy as np
import numpy.typing as npt
from numpy import float64
from pandas import DataFrameI know I'm definitely doing something wrong since I've seen multiple examples of folks importing
[tool.poetry.dependencies]
python = "~3.10"
numpy = "^1.22.3"I appreciate the help and this great tool! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
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 Here are a few other things you can try to narrow down the problem.
BTW, if you're using pyright with VS Code, we recommend that you use Pylance instead. It builds on pyright and adds a bunch of useful convenience features. |
Beta Was this translation helpful? Give feedback.

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 nptand choose "Go To Declaration", where does it take you? It should take you tosite-packages/numpy/typing/__init__.py.Here are a few other things you can try to narrow down the problem.
{ "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…