How to set pylance to use project stubs over bundled stubs? #4161
Unanswered
BrandonNav
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am having trouble with the bundled Django stubs provided by pylance.
My understanding is that these are provided from https://github.com/sbdchd/django-types
My trouble is that they are incomplete as compared to https://github.com/typeddjango/django-stubs for the version of Django I am using.
Env
Version: 1.76.2
Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
Date: 2023-03-14T17:53:46.528Z (2 wks ago)
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: No
Name: Python
Id: ms-python.python
Version: 2023.4.1
Name: Pylance
Id: ms-python.vscode-pylance
Version: 2023.3.30
Reproduction
"classproperty" is unknown import symbol
rm -rf $HOME/.vscode/extensions/ms-python.vscode-pylance-2023.3.30/dist/bundled/stubs/django-stubs
Question
How do I configure pylance to use the django-stubs in my virtualenv?
Beta Was this translation helpful? Give feedback.
All reactions