1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 11:29:46 +03:00

pmb.types: Add Apkbuild type (MR 2464)

Useful for annotating places where a parsed APKBUILD is expected.
This commit is contained in:
Newbyte 2024-10-29 16:40:34 +01:00
parent b0526128fe
commit f2c7fa1107
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -3,13 +3,14 @@
from argparse import Namespace
from pathlib import Path
from typing import Literal, TypedDict
from typing import Any, Literal, TypedDict
from pmb.core.arch import Arch
CrossCompileType = Literal["native", "crossdirect"] | None
PathString = Path | str
Env = dict[str, PathString]
Apkbuild = dict[str, Any]
# These types are not definitive / API, they exist to describe the current
# state of things so that we can improve our type hinting coverage and make