forked from Mirror/pmbootstrap
pmb: Properly type Bootimg (MR 2464)
This could be done better with a real class instead of a TypedDict, but it's better than a regular dict.
This commit is contained in:
parent
f2c7fa1107
commit
826bb4f2dd
3 changed files with 53 additions and 16 deletions
17
pmb/types.py
17
pmb/types.py
|
@ -29,6 +29,23 @@ class AportGenEntry(TypedDict):
|
|||
confirm_overwrite: bool
|
||||
|
||||
|
||||
class Bootimg(TypedDict):
|
||||
cmdline: str
|
||||
qcdt: str
|
||||
qcdt_type: str | None
|
||||
dtb_offset: str | None
|
||||
dtb_second: str
|
||||
base: str
|
||||
kernel_offset: str
|
||||
ramdisk_offset: str
|
||||
second_offset: str
|
||||
tags_offset: str
|
||||
pagesize: str
|
||||
header_version: str | None
|
||||
mtk_label_kernel: str
|
||||
mtk_label_ramdisk: str
|
||||
|
||||
|
||||
# Property list generated with:
|
||||
# $ rg --vimgrep "((^|\s)args\.\w+)" --only-matching | cut -d"." -f3 | sort | uniq
|
||||
class PmbArgs(Namespace):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue