Skip to content
Snippets Groups Projects
Commit 12b7ec82 authored by Luca Weiss's avatar Luca Weiss
Browse files

pmb.parse.apkindex: Add missing type hints in package()

Make sure to annotate the parameters.
parent e0d31a70
No related branches found
No related tags found
No related merge requests found
Pipeline #208508 passed
......@@ -439,7 +439,11 @@ def provider_shortest(providers: dict[str, ApkindexBlock], pkgname: str) -> Apki
# This can't be cached because the APKINDEX can change during pmbootstrap build!
def package(
package, arch: Arch | None = None, must_exist=True, indexes=None, user_repository=True
package: str,
arch: Arch | None = None,
must_exist: bool = True,
indexes: list[Path] | None = None,
user_repository: bool = True,
) -> ApkindexBlock | None:
"""
Get a specific package's data from an apkindex.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment