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
Operating system: Ubuntu 22.04.4 LTS wxPython version & source: 4.2.1 (pypi) Python version & source: 3.10 (default version in Ubuntu)
Description of the problem: Some variables are exported from the stubs in a way that the LSP (Pylance in vscode) can't detect. There is no actual runtime problem it is just that something is wrong with the stubs (.pyi files).
Examples include: wx.BOLD, wx.DEFAULT, and wx.LIGHT.
Here is a snippet of my problem:
I started investigating the .pyi files for the definition of these variables and found them all in .venv/lib/python3.10/site-packages/wx/core.pyi (I use a virtual environment).
If I remove the wx from the definition the issue is fixed.
Code Example (click to expand)
importwxwx.BOLD# Pylance thinks this variable is not defined
The text was updated successfully, but these errors were encountered:
Operating system: Ubuntu 22.04.4 LTS
wxPython version & source: 4.2.1 (pypi)
Python version & source: 3.10 (default version in Ubuntu)
Description of the problem: Some variables are exported from the stubs in a way that the LSP (Pylance in vscode) can't detect. There is no actual runtime problem it is just that something is wrong with the stubs (.pyi files).
Examples include:
wx.BOLD
,wx.DEFAULT
, andwx.LIGHT
.Here is a snippet of my problem:
I started investigating the .pyi files for the definition of these variables and found them all in
.venv/lib/python3.10/site-packages/wx/core.pyi
(I use a virtual environment).If I remove the
wx
from the definition the issue is fixed.Code Example (click to expand)
The text was updated successfully, but these errors were encountered: