Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.13.2
-
None
-
Kubuntu 19.04 64 bit
Installation approach: pip, in a virtual environment. Virtual environment is setup using
{{python3 -m venv venv }}command. Then, after activating virtual environment, PySide2 is installed using
pip install PySide2
Version information:
pip show PySide2
{{ Name: PySide2}}
{{ Version: 5.13.0}}Kubuntu 19.04 64 bit Installation approach: pip, in a virtual environment. Virtual environment is setup using {{python3 -m venv venv }}command. Then, after activating virtual environment, PySide2 is installed using pip install PySide2 Version information: pip show PySide2 {{ Name: PySide2}} {{ Version: 5.13.0}}
Description
Hello!
Thank you for creating the awesome pyi files, making it easier for IDEs to show autocompletion options.
I am using PyCharm - one of the popular Python IDEs out there. It references the pyi files from the PySide2 package when installed into a virtual environment. Now, when I use the autocompletion feature, it perfectly shows everything based on pyi files available. However, it also shows errors in some cases, like imports.
from PySide2.QtWidgets import QMainWindow, QApplication, QAction
from PySide2.QtCore import Slot, qApp
PyCharm will report that everything is perfectly normal with the first line of import but will show an error that it can not find the reference to Slot (and qAPP) in QtCore.pyi file. Opening the QtCore.pyi file manually confirms that. The only cases where slot is found are:
- a function called SLOT
- function arguments
I uploaded the QtCore.pyi file as attachment here.
I should mention that running the above statements in file/python interpreter works fine, so the modules are actually there. Just not found in pyi file.
Again, thank you for the Awesome pyi files Cristian (and your team)
Attachments
Issue Links
- relates to
-
PYSIDE-945 Slot, Signal and possibly more missing in QtCore.pyi
- Closed