pmb.commands.kconfig_check: Annotate None return types (MR 2411)

Otherwise we don't get type checking in these functions.
This commit is contained in:
Stefan Hansson 2024-09-26 17:34:06 +02:00
parent c7a7fee909
commit 3d60673f64
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -17,13 +17,13 @@ class KConfigCheck(commands.Command):
packages: list[str]
keep_going: bool
def __init__(self, details, file, packages, keep_going):
def __init__(self, details, file, packages, keep_going) -> None:
self.details = details
self.file = file
self.packages = packages
self.keep_going = keep_going
def run(self):
def run(self) -> None:
# Build the components list from cli arguments (--waydroid etc.)
components_list: list[str] = []
error_msg = "kconfig check failed! More info: https://postmarketos.org/kconfig"