PyEnum: make forgiving duplicates work with Python 3.11
authorChristian Tismer <tismer@stackless.com>
Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 15 Oct 2023 20:04:58 +0000 (21:04 +0100)
commitf50d9c776c9ff1d7e6ec6d03db94fdd214db2f56
treeb9e4deee0a944aa2ade93c5507ec2505e3d8a062
parent1f82567b2cd48488963a61c38a21ef97a2fdea2c
PyEnum: make forgiving duplicates work with Python 3.11

There was a silent change in PyEnums that turns Enum attributes
into properties. This does not harm the Python interface but
needed some change in the duplication emulation.

Furthermore, new internal enums are created with an underscore name.

The meta class was changed from EnumMeta to EnumType.

[ChangeLog][shiboken6] The new Python Enums are now compatible with Python 3.11

Change-Id: I3b1ab63dc5eed15a75ebd0f42dddf4001f640c00
Pick-to: 6.3
Task-number: PYSIDE-1735
Fixes: PYSIDE-1960
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit da2cf031521815a9559ca784beadb70c7a2852d9)

Gbp-Pq: Name PyEnum-make-forgiving-duplicates-work-with-Python-3.11.patch
sources/pyside2/tests/QtCore/qenum_test.py
sources/shiboken2/libshiboken/pep384impl.h
sources/shiboken2/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py