-
Type:
Bug
-
Status: In Progress
-
Priority:
P3: Somewhat important
-
Resolution: Unresolved
-
Affects Version/s: 5.15.0
-
Fix Version/s: None
-
Component/s: PySide
-
Labels:None
-
Environment:Linux, Python3.8, 0.782
When running mypy I am getting:
qtrio/_core.py:34: error: Too many arguments for "Type"
for:
REENTER_EVENT: QtCore.QEvent.Type = QtCore.QEvent.Type(REENTER_EVENT_HINT)
The code works with both PyQt5 and PySide2. PyQt5 also passes mypy for this using PyQt5-stubs anyways. help(QtCore.QEvent.Type) gives class Type(builtins.int) for PyQt5 and class Type(builtins.object) for PySide2. I get the same for QtCore.QJsonValue.Type so I guess it might be a generic shiboken.EnumType issue or such.
For Gerrit Dashboard: PYSIDE-1347 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
309947,1 | WIP: Use 'int' instead of 'object' for Enum stubs | 5.15 | pyside/pyside-setup | Status: NEW | -2 | 0 |
329901,1 | WIP: shiboken: Provide the correct Int inheritance for enum types | 5.15 | pyside/pyside-setup | Status: NEW | -2 | 0 |