Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.3.2
-
None
-
Platform: Ubuntu 20.04 / Pop-OS / Windows
Python version: 3.8.10, 3.9.10
-
-
3609308c63 (pyside/pyside-setup/dev) 0b29d3aa80 (pyside/pyside-setup/6.4) 8ba40d22c0 (pyside/pyside-setup/6.4.0) 0b29d3aa80 (pyside/tqtc-pyside-setup/6.4) 8ba40d22c0 (pyside/tqtc-pyside-setup/6.4.0) 3609308c63 (pyside/tqtc-pyside-setup/dev)
Description
We found some strange behaviour and it seems Shiboken overrides the built in enum.
Minimal example:
import enum class MyEnum(enum.Enum): MEMBER = 0 print(f"{isinstance(MyEnum.MEMBER, enum.Enum)=}") import PySide6 print(f"{PySide6.__version__=}") print(f"{isinstance(MyEnum.MEMBER, enum.Enum)=}") import enum print(f"{isinstance(MyEnum.MEMBER, enum.Enum)=}") -----------OUTPUT-------------- isinstance(MyEnum.MEMBER, enum.Enum)=True PySide6.__version__='6.3.2' isinstance(MyEnum.MEMBER, enum.Enum)=True isinstance(MyEnum.MEMBER, enum.Enum)=False
Attachments
For Gerrit Dashboard: PYSIDE-2063 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
439523,6 | PyEnum: Drop the Embedding of the Enum Module | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
439652,2 | PyEnum: Drop the Embedding of the Enum Module | 6.4 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
439653,2 | PyEnum: Drop the Embedding of the Enum Module | 6.4.0 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
439654,3 | PyEnum: Drop the Embedding of the Enum Module | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |