treewide: type hint args (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-05-22 22:30:33 +02:00 committed by Oliver Smith
parent 198f302a36
commit 7b14ef597b
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
40 changed files with 152 additions and 151 deletions

View file

@ -97,7 +97,7 @@ def ask(question="Continue?", choices=["y", "n"], default="n",
validation_regex + "). Please try again.")
def confirm(args, question="Continue?", default=False, no_assumptions=False):
def confirm(args: PmbArgs, question="Continue?", default=False, no_assumptions=False):
"""Convenience wrapper around ask for simple yes-no questions with validation.
:param no_assumptions: ask for confirmation, even if "pmbootstrap -y' is set
@ -111,7 +111,7 @@ def confirm(args, question="Continue?", default=False, no_assumptions=False):
return answer == "y"
def progress_print(args, progress):
def progress_print(args: PmbArgs, progress):
"""Print a snapshot of a progress bar to STDOUT.
Call progress_flush to end printing progress and clear the line. No output is printed in