diff --git a/wa/utils/types.py b/wa/utils/types.py index 7ec9cb5b..823cf0f4 100644 --- a/wa/utils/types.py +++ b/wa/utils/types.py @@ -586,10 +586,10 @@ class _EnumMeta(type): def __str__(cls): return str(cls.levels) - def __getattr__(self, name): + def __getattr__(cls, name): name = name.lower() - if name in self.__dict__: - return self.__dict__[name] + if name in cls.__dict__: + return cls.__dict__[name] def enum(args, start=0, step=1):