From 9ef7fe0843446b42ceabfc8d498c6d457520b321 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Sun, 16 Jun 2024 18:52:20 +0200 Subject: [PATCH] hotfix: add missing method in performance enum --- modules/flags.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/flags.py b/modules/flags.py index 8b35daea..29ac4615 100644 --- a/modules/flags.py +++ b/modules/flags.py @@ -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]