hohav / py-slippi

Python library for parsing SSBM replay files
MIT License
56 stars 25 forks source link

Fix repr of IntFlag enums (issue 47) #49

Open Kered13 opened 1 year ago

Kered13 commented 1 year ago

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.