mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-24 21:15:10 +03:00
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
|
@ -7,7 +7,7 @@ import pmb.aportgen.core
|
|||
import pmb.parse.apkindex
|
||||
|
||||
|
||||
def generate_apkbuild(pkgname: str, deviceinfo: Deviceinfo, patches: list[str]):
|
||||
def generate_apkbuild(pkgname: str, deviceinfo: Deviceinfo, patches: list[str]) -> None:
|
||||
device = "-".join(pkgname.split("-")[1:])
|
||||
carch = deviceinfo.arch.kernel()
|
||||
|
||||
|
@ -117,7 +117,7 @@ def generate_apkbuild(pkgname: str, deviceinfo: Deviceinfo, patches: list[str]):
|
|||
hndl.write(line[8:].replace(" " * 4, "\t") + "\n")
|
||||
|
||||
|
||||
def generate(pkgname: str):
|
||||
def generate(pkgname: str) -> None:
|
||||
device = "-".join(pkgname.split("-")[1:])
|
||||
deviceinfo = pmb.parse.deviceinfo(device)
|
||||
work = get_context().config.work
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue