forked from Mirror/pmbootstrap
pmb.types: Add Apkbuild type (MR 2464)
Useful for annotating places where a parsed APKBUILD is expected.
This commit is contained in:
parent
b0526128fe
commit
f2c7fa1107
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue