Minor typos and fixes and updated requirement for Python >= 3.8

This commit is contained in:
Nocturn9x
2022-04-29 11:05:59 +02:00
parent d83317d34a
commit e08b47260f
2 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ from enum import Enum, auto, EnumMeta
class ContainsEnumMeta(EnumMeta):
"""
Simple metaclass that implements
the item in self operation
the 'item in self' operation
"""
def __contains__(cls, item):
@@ -38,8 +38,8 @@ class ExceptionHandling(Enum, metaclass=ContainsEnumMeta):
to be caught
"""
IGNORE: "ExceptionHandling" = auto() # The exception is caught and ignored
LOG: "ExceptionHandling" = auto() # The exception is caught and logged
IGNORE: "ExceptionHandling" = auto() # The exception is caught and ignored
LOG: "ExceptionHandling" = auto() # The exception is caught and logged
PROPAGATE: "ExceptionHandling" = auto() # The exception is not caught at all
@@ -53,8 +53,8 @@ class UnknownEventHandling(Enum, metaclass=ContainsEnumMeta):
"""
IGNORE: "UnknownEventHandling" = auto() # Do nothing
LOG: "UnknownEventHandling" = auto() # Log it as a warning
ERROR: "UnknownEventHandling" = auto() # raise an UnknownEvent error
LOG: "UnknownEventHandling" = auto() # Log it as a warning
ERROR: "UnknownEventHandling" = auto() # raise an UnknownEvent error
class ExecutionMode(Enum, metaclass=ContainsEnumMeta):
@@ -63,5 +63,5 @@ class ExecutionMode(Enum, metaclass=ContainsEnumMeta):
spawns tasks
"""
PAUSE: "ExecutionMode" = auto() # Spawn tasks via "await"
PAUSE: "ExecutionMode" = auto() # Spawn tasks via "await"
NOWAIT: "ExecutionMode" = auto() # Use asyncio.create_task

View File

@@ -28,5 +28,5 @@ if __name__ == "__main__":
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
],
python_requires=">=3.6",
python_requires=">=3.8",
)