From f2c7fa1107526efbf4ae8b160c46efad5955e01b Mon Sep 17 00:00:00 2001 From: Newbyte Date: Tue, 29 Oct 2024 16:40:34 +0100 Subject: [PATCH] pmb.types: Add Apkbuild type (MR 2464) Useful for annotating places where a parsed APKBUILD is expected. --- pmb/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmb/types.py b/pmb/types.py index f8031bf4..e7aea670 100644 --- a/pmb/types.py +++ b/pmb/types.py @@ -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