Skip to content

Added support for the new Enum changes in Python 3.12.#517

Merged
Ayuto merged 1 commit intoSource-Python-Dev-Team:masterfrom
CookStar:patch-4
Apr 21, 2025
Merged

Added support for the new Enum changes in Python 3.12.#517
Ayuto merged 1 commit intoSource-Python-Dev-Team:masterfrom
CookStar:patch-4

Conversation

@CookStar
Copy link
Copy Markdown
Contributor

@CookStar CookStar commented Apr 21, 2025

In Python 3.12, there is a destructive change in the Enum class that now raises TypeError if a member is empty.

python/cpython#108682
python/cpython#108704
python/cpython@d48760b#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03R1117-R1121

This destructive change may affect other parts of the SP code, but the currently causing the problem by WeaponSlot is fixed first.
Fix #515, #516 issues.

@Ayuto
Copy link
Copy Markdown
Member

Ayuto commented Apr 21, 2025

Thank you!

@Ayuto Ayuto merged commit 7fa8096 into Source-Python-Dev-Team:master Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HL2:DM weaponslist

2 participants