Minor typos and fixes and updated requirement for Python >= 3.8
This commit is contained in:
parent
d83317d34a
commit
e08b47260f
|
@ -14,7 +14,7 @@ from enum import Enum, auto, EnumMeta
|
||||||
class ContainsEnumMeta(EnumMeta):
|
class ContainsEnumMeta(EnumMeta):
|
||||||
"""
|
"""
|
||||||
Simple metaclass that implements
|
Simple metaclass that implements
|
||||||
the item in self operation
|
the 'item in self' operation
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __contains__(cls, item):
|
def __contains__(cls, item):
|
||||||
|
@ -38,8 +38,8 @@ class ExceptionHandling(Enum, metaclass=ContainsEnumMeta):
|
||||||
to be caught
|
to be caught
|
||||||
"""
|
"""
|
||||||
|
|
||||||
IGNORE: "ExceptionHandling" = auto() # The exception is caught and ignored
|
IGNORE: "ExceptionHandling" = auto() # The exception is caught and ignored
|
||||||
LOG: "ExceptionHandling" = auto() # The exception is caught and logged
|
LOG: "ExceptionHandling" = auto() # The exception is caught and logged
|
||||||
PROPAGATE: "ExceptionHandling" = auto() # The exception is not caught at all
|
PROPAGATE: "ExceptionHandling" = auto() # The exception is not caught at all
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,8 +53,8 @@ class UnknownEventHandling(Enum, metaclass=ContainsEnumMeta):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
IGNORE: "UnknownEventHandling" = auto() # Do nothing
|
IGNORE: "UnknownEventHandling" = auto() # Do nothing
|
||||||
LOG: "UnknownEventHandling" = auto() # Log it as a warning
|
LOG: "UnknownEventHandling" = auto() # Log it as a warning
|
||||||
ERROR: "UnknownEventHandling" = auto() # raise an UnknownEvent error
|
ERROR: "UnknownEventHandling" = auto() # raise an UnknownEvent error
|
||||||
|
|
||||||
|
|
||||||
class ExecutionMode(Enum, metaclass=ContainsEnumMeta):
|
class ExecutionMode(Enum, metaclass=ContainsEnumMeta):
|
||||||
|
@ -63,5 +63,5 @@ class ExecutionMode(Enum, metaclass=ContainsEnumMeta):
|
||||||
spawns tasks
|
spawns tasks
|
||||||
"""
|
"""
|
||||||
|
|
||||||
PAUSE: "ExecutionMode" = auto() # Spawn tasks via "await"
|
PAUSE: "ExecutionMode" = auto() # Spawn tasks via "await"
|
||||||
NOWAIT: "ExecutionMode" = auto() # Use asyncio.create_task
|
NOWAIT: "ExecutionMode" = auto() # Use asyncio.create_task
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -28,5 +28,5 @@ if __name__ == "__main__":
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"License :: OSI Approved :: Apache Software License",
|
"License :: OSI Approved :: Apache Software License",
|
||||||
],
|
],
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.8",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue