Reputation: 432
I just installed Vscode, created an venv with pew, activated the environment, pip installed Pylint and PySide.
Now Pylint recognize the PySide packages as it's not raising any error or warning at from PySide.QtGui import *
, but all the PySide objects are getting a E: 10,23: Undefined variable 'QWidget' (undefined-variable)
. Pylint and PySide are definitely installed in the same environment.
Why Pylint doesn't recognize objects from PySide?
Upvotes: 1
Views: 885
Reputation: 15980
This issue has happened before with PyQt and Pylint. It probably has to do with how Pylint handles import *
and how PySide
defines it.
I would try not using import *
(which is typically frowned upon anyway if you're not in the REPL).
Upvotes: 1