hotfix: add missing method in performance enum (#3154)

This commit is contained in:
Manuel Schmid 2024-06-16 18:53:20 +02:00 committed by GitHub
parent 9d41c9521b
commit 7c1a101c0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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]