mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-07 05:31:21 +00:00
utils/types: Rename cls
argument
This commit is contained in:
parent
cbc7b2647f
commit
4d1c03cc5c
@ -586,10 +586,10 @@ class _EnumMeta(type):
|
|||||||
def __str__(cls):
|
def __str__(cls):
|
||||||
return str(cls.levels)
|
return str(cls.levels)
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(cls, name):
|
||||||
name = name.lower()
|
name = name.lower()
|
||||||
if name in self.__dict__:
|
if name in cls.__dict__:
|
||||||
return self.__dict__[name]
|
return cls.__dict__[name]
|
||||||
|
|
||||||
|
|
||||||
def enum(args, start=0, step=1):
|
def enum(args, start=0, step=1):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user