pmb: Add lots of type hints (MR 2464)

This commit is contained in:
Newbyte 2024-10-29 23:06:59 +01:00
parent d05d57b37e
commit 225d8b30a0
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
71 changed files with 566 additions and 325 deletions

View file

@ -55,7 +55,7 @@ unmigrated_commands = [
]
def run_command(args: PmbArgs):
def run_command(args: PmbArgs) -> None:
# Handle deprecated command format
if args.action in unmigrated_commands:
getattr(frontend, args.action)(args)

View file

@ -114,7 +114,7 @@ class RepoBootstrap(commands.Command):
bootstrap_stage = int(step.split("bootstrap_", 1)[1])
def log_wrapper(pkg: BuildQueueItem):
def log_wrapper(pkg: BuildQueueItem) -> None:
self.log_progress(f"building {pkg['name']}")
packages = self.get_packages(bootstrap_line)