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