diff --git a/asyncevents/constants.py b/asyncevents/constants.py index b71572c..4dc44d8 100644 --- a/asyncevents/constants.py +++ b/asyncevents/constants.py @@ -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 diff --git a/setup.py b/setup.py index baa6a89..3159383 100644 --- a/setup.py +++ b/setup.py @@ -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", )