forked from Mirror/pmbootstrap
pmb: Add lots of type hints (MR 2464)
This commit is contained in:
parent
d05d57b37e
commit
225d8b30a0
71 changed files with 566 additions and 325 deletions
|
@ -12,7 +12,7 @@ import pmb.flasher
|
|||
import pmb.helpers.frontend
|
||||
|
||||
|
||||
def create_zip(args: PmbArgs, chroot: Chroot, device: str):
|
||||
def create_zip(args: PmbArgs, chroot: Chroot, device: str) -> None:
|
||||
"""
|
||||
Create android recovery compatible installer zip.
|
||||
"""
|
||||
|
@ -51,7 +51,7 @@ def create_zip(args: PmbArgs, chroot: Chroot, device: str):
|
|||
raise AssertionError("Partitions should not be None at this point")
|
||||
|
||||
# Create config file for the recovery installer
|
||||
options = {
|
||||
options: dict[str, bool | str] = {
|
||||
"DEVICE": device,
|
||||
"FLASH_KERNEL": args.recovery_flash_kernel,
|
||||
"ISOREC": method == "heimdall-isorec",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue