Skip to content

Commit

Permalink
fix list implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocazzolato committed Jun 13, 2024
1 parent b4a5439 commit 6f61874
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/log_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
class ListedEnum(Enum):
@classmethod
def list(cls) -> list[str]:
return [str(x) for x in cls.__members__.values()]

return list(map(lambda c: c.value, cls))

class ExecutionPhase(ListedEnum):
PREPARING = "Preparing"
Expand Down

0 comments on commit 6f61874

Please sign in to comment.