Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025

Conversation

CookStar
Copy link
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
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