Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.0
-
None
-
Linux, Python3.8, 0.782
-
e6a4a094ace43250e3ffca03a9f8d1f138de1b5a (pyside/pyside-setup/dev) d1d2c2385a12a7528ed9a966546aa229a962ab3b (pyside/tqtc-pyside-setup/tqtc/lts-5.15) 9819a81a96ce7b504144cfda94c8b70c3ab1671e (pyside/pyside-setup/6.0)
Description
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.
Attachments
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: ABANDONED | -2 | 0 |
329901,5 | shiboken: Provide the correct inheritance for enum types | 5.15 | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
330707,6 | shiboken: Provide the correct inheritance for enum types | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
330895,2 | shiboken: Provide the correct inheritance for enum types | 6.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
332980,2 | shiboken: Provide the correct inheritance for enum types | tqtc/lts-5.15 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |