Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/models/bootloader.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-09-24 18:14:02 +1000
committerGitHub <noreply@github.com>2023-09-24 10:14:02 +0200
commit360a1b4f337e45b2dc26c9af067e53fbd364231f (patch)
tree665a42dffec8c3b174e41f2e60d669d8dbe44351 /archinstall/lib/models/bootloader.py
parent877e34de6353691fb9707828a5880c27655f1d1b (diff)
Unify json functions (#2102)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/models/bootloader.py')
-rw-r--r--archinstall/lib/models/bootloader.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/models/bootloader.py b/archinstall/lib/models/bootloader.py
index be9812a0..fa3f32c8 100644
--- a/archinstall/lib/models/bootloader.py
+++ b/archinstall/lib/models/bootloader.py
@@ -14,12 +14,12 @@ class Bootloader(Enum):
Efistub = 'Efistub'
Limine = 'Limine'
- def json(self):
+ def json(self) -> str:
return self.value
- @classmethod
- def values(cls) -> List[str]:
- return [e.value for e in cls]
+ @staticmethod
+ def values() -> List[str]:
+ return [e.value for e in Bootloader]
@classmethod
def get_default(cls) -> Bootloader: