hotfix: add missing method in performance enum
This commit is contained in:
parent
9d41c9521b
commit
9ef7fe0843
|
|
@ -155,6 +155,10 @@ class Performance(Enum):
|
|||
def list(cls) -> list:
|
||||
return list(map(lambda c: c.value, cls))
|
||||
|
||||
@classmethod
|
||||
def values(cls) -> list:
|
||||
return list(map(lambda c: c.value, cls))
|
||||
|
||||
@classmethod
|
||||
def by_steps(cls, steps: int | str):
|
||||
return cls[Steps(int(steps)).name]
|
||||
|
|
|
|||
Loading…
Reference in New Issue