Skip to content
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

Fix repr of IntFlag enums (issue 47) #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kered13
Copy link

@Kered13 Kered13 commented Mar 17, 2023

Fixes #47

The enum._decompose method has been removed in newer versions of Python (at least >=3.11). The name indicates that it was private and should not have been used in the first place. The new implementation uses only documented public methods of the enum library. The repr format should be the exact same.

The enum._decompose method has been removed in newer versions of Python (at least >=3.11). The name indicates that it was private and should not have been used in the first place. The new implementation uses only documented public methods of the enum library.
davisdude added a commit to davisdude/py-slippi that referenced this pull request Jul 4, 2023
hohav#49

commit ce75547
Author: Derek Brown <[email protected]>
Date:   Fri Mar 17 19:33:56 2023 -0400

    Fix repr of IntFlag enums (issue 47)

    The enum._decompose method has been removed in newer versions of Python (at least >=3.11). The name indicates that it was private and should not have been used in the first place. The new implementation uses only documented public methods of the enum library.

Co-authored-by: Derek Brown <[email protected]>
davisdude added a commit to davisdude/py-slippi that referenced this pull request Jul 4, 2023
hohav#49

commit ce75547
Author: Derek Brown <[email protected]>
Date:   Fri Mar 17 19:33:56 2023 -0400

    Fix repr of IntFlag enums (issue 47)

    The enum._decompose method has been removed in newer versions of Python (at least >=3.11). The name indicates that it was private and should not have been used in the first place. The new implementation uses only documented public methods of the enum library.

Co-authored-by: Derek Brown <[email protected]>
davisdude added a commit to davisdude/py-slippi that referenced this pull request Jul 4, 2023
hohav#49

commit ce75547
Author: Derek Brown <[email protected]>
Date:   Fri Mar 17 19:33:56 2023 -0400

    Fix repr of IntFlag enums (issue 47)

    The enum._decompose method has been removed in newer versions of Python (at least >=3.11). The name indicates that it was private and should not have been used in the first place. The new implementation uses only documented public methods of the enum library.

Co-authored-by: Derek Brown <[email protected]>
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.

AttributeError: module 'enum' has no attribute '_decompose' when accessing frames property
1 participant