kopia lustrzana https://github.com/Yakifo/amqtt
strenum for python 3.10
rodzic
a5487b5cef
commit
29dd5b4a5c
|
@ -1,4 +1,10 @@
|
|||
from enum import StrEnum
|
||||
try:
|
||||
from enum import StrEnum
|
||||
except ImportError:
|
||||
# support for python 3.10
|
||||
from enum import Enum
|
||||
class StrEnum(str, Enum): #type: ignore[no-redef]
|
||||
pass
|
||||
|
||||
|
||||
class Events(StrEnum):
|
||||
|
|
Ładowanie…
Reference in New Issue