You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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