forked from Mirror/pmbootstrap
pmb: Add more type hints (MR 2513)
And fix some consequential type errors. [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
c8194302fc
commit
0925b3e425
12 changed files with 69 additions and 19 deletions
|
@ -18,7 +18,7 @@ from pmb.meta import Cache
|
|||
# to specify which one they're using.
|
||||
# Basically: treat Deviceinfo as a standalone type that
|
||||
# doesn't need to traverse pmaports.
|
||||
def _parse_kernel_suffix(info, device, kernel):
|
||||
def _parse_kernel_suffix(info: dict[str, str], device: str, kernel: str | None) -> dict[str, str]:
|
||||
"""
|
||||
Remove the kernel suffix (as selected in 'pmbootstrap init') from
|
||||
deviceinfo variables. Related:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue