-
I need to use But pyright keep reporting the I'd like to know if pyright can detect the conditional dependencies. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The typeshed stub file for the If pyright indicates that it can't find the |
Beta Was this translation helpful? Give feedback.
The typeshed stub file for the
importlib.resources
module indicates thatfiles
is available for Python 3.9 and newer. See this link for details.If pyright indicates that it can't find the
files
symbol, that's probably because you've configured it to assume Python 3.8 or older. By default, python will use the Python version from the python environment you've configured from the command-line shell. Typepython3 --version
to see the version of the active python environment. If it's not what you're expecting, then activate the intended python environment before running pyright.