--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsEnums.py Mon Apr 26 17:33:08 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsEnums.py Tue Apr 27 17:25:06 2021 +0200 @@ -11,34 +11,33 @@ # adapted from flake8-annotations v2.6.2 # -from enum import Enum, auto +import enum - -class FunctionType(Enum): +class FunctionType(enum.Enum): """ Class representing the various function types. """ - PUBLIC = auto() - PROTECTED = auto() # Leading single underscore - PRIVATE = auto() # Leading double underscore - SPECIAL = auto() # Leading & trailing double underscore + PUBLIC = enum.auto() + PROTECTED = enum.auto() # Leading single underscore + PRIVATE = enum.auto() # Leading double underscore + SPECIAL = enum.auto() # Leading & trailing double underscore -class ClassDecoratorType(Enum): +class ClassDecoratorType(enum.Enum): """ Class representing the various class method decorators. """ - CLASSMETHOD = auto() - STATICMETHOD = auto() + CLASSMETHOD = enum.auto() + STATICMETHOD = enum.auto() -class AnnotationType(Enum): +class AnnotationType(enum.Enum): """ Class representing the kind of missing type annotation. """ - POSONLYARGS = auto() - ARGS = auto() - VARARG = auto() - KWONLYARGS = auto() - KWARG = auto() - RETURN = auto() + POSONLYARGS = enum.auto() + ARGS = enum.auto() + VARARG = enum.auto() + KWONLYARGS = enum.auto() + KWARG = enum.auto() + RETURN = enum.auto()