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>
Tue, 25 Jun 2024 20:47:03 +0000 (23:47 +0300)
commit1aa6e563ca40412a5b457026ead99054478d921c
tree554032cb7eb57f82d964a7d6282ab857f22a014a
parentd3bfcffb973dcbb2dc745991d66220a8f912a194
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/shibokenmodule/files.dir/shibokensupport/signature/lib/enum_sig.py