make our CEnum behave like a strenum properly
This commit is contained in:
parent
679dc72e21
commit
186f1a2887
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class ExistingCStruct():
|
|||
|
||||
class CEnum(str, Enum):
|
||||
def __new__(cls, value, c_value):
|
||||
obj = str.__new__(cls)
|
||||
obj = str.__new__(cls, value)
|
||||
obj._value_ = value
|
||||
obj.c_value = c_value
|
||||
return obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue