Skip to content

Commit

Permalink
hotfix: add missing method in performance enum (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
mashb1t authored Jun 16, 2024
1 parent 9d41c95 commit 7c1a101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ class Performance(Enum):
def list(cls) -> list:
return list(map(lambda c: c.value, cls))

@classmethod

This comment has been minimized.

Copy link
@csokun

csokun Jun 17, 2024

The values implementation looks the same as list

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]
Expand Down

0 comments on commit 7c1a101

Please sign in to comment.