]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Do not explicitly instantiate exceptions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Sep 2023 15:36:27 +0000 (17:36 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Sep 2023 15:40:15 +0000 (17:40 +0200)
This will happen automatically. If no arguments are needed, it's
more pythonic to just specify the class and let the interpreter
create the instance.

mkosi/distributions/__init__.py

index e1af068c45e281fcc007c554cdcc69542470f765..5e00195bc528aa7e5554ffe80fbd088f470df54e 100644 (file)
@@ -24,19 +24,19 @@ class PackageType(StrEnum):
 class DistributionInstaller:
     @classmethod
     def setup(cls, state: "MkosiState") -> None:
-        raise NotImplementedError()
+        raise NotImplementedError
 
     @classmethod
     def install(cls, state: "MkosiState") -> None:
-        raise NotImplementedError()
+        raise NotImplementedError
 
     @classmethod
     def install_packages(cls, state: "MkosiState", packages: Sequence[str]) -> None:
-        raise NotImplementedError()
+        raise NotImplementedError
 
     @classmethod
     def remove_packages(cls, state: "MkosiState", packages: Sequence[str]) -> None:
-        raise NotImplementedError()
+        raise NotImplementedError
 
     @classmethod
     def filesystem(cls) -> str: