From: Zbigniew Jędrzejewski-Szmek Date: Fri, 29 Sep 2023 15:36:27 +0000 (+0200) Subject: Do not explicitly instantiate exceptions X-Git-Tag: v18~26^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61f41760e62473d7df1390d3d6f4e5ec507e67f9;p=thirdparty%2Fmkosi.git Do not explicitly instantiate exceptions 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. --- diff --git a/mkosi/distributions/__init__.py b/mkosi/distributions/__init__.py index e1af068c4..5e00195bc 100644 --- a/mkosi/distributions/__init__.py +++ b/mkosi/distributions/__init__.py @@ -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: