bckohan / enum-properties

Add properties and method specializations to Python enumeration values with a simple declarative syntax.
https://enum-properties.rtfd.io
MIT License
18 stars 0 forks source link

New flag behavior modifiers break IntFlagProperties in python 3.11+ #37

Closed bckohan closed 1 year ago

bckohan commented 1 year ago

This should work:

class StrictFlag(IntFlagProperties, p('label'), boundary=STRICT):
    RED = auto(), 'red'
    GREEN = auto(), 'green'
    BLUE = auto(), 'blue'