forked from Mirror/pmbootstrap
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:
parent
c7a7fee909
commit
3d60673f64
1 changed files with 2 additions and 2 deletions
|
@ -17,13 +17,13 @@ class KConfigCheck(commands.Command):
|
||||||
packages: list[str]
|
packages: list[str]
|
||||||
keep_going: bool
|
keep_going: bool
|
||||||
|
|
||||||
def __init__(self, details, file, packages, keep_going):
|
def __init__(self, details, file, packages, keep_going) -> None:
|
||||||
self.details = details
|
self.details = details
|
||||||
self.file = file
|
self.file = file
|
||||||
self.packages = packages
|
self.packages = packages
|
||||||
self.keep_going = keep_going
|
self.keep_going = keep_going
|
||||||
|
|
||||||
def run(self):
|
def run(self) -> None:
|
||||||
# Build the components list from cli arguments (--waydroid etc.)
|
# Build the components list from cli arguments (--waydroid etc.)
|
||||||
components_list: list[str] = []
|
components_list: list[str] = []
|
||||||
error_msg = "kconfig check failed! More info: https://postmarketos.org/kconfig"
|
error_msg = "kconfig check failed! More info: https://postmarketos.org/kconfig"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue