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

pmb.build: Properly type cross-compilation types (MR 2337)

This commit is contained in:
Newbyte 2024-06-24 19:56:36 +02:00
parent d6d088b68b
commit ca6d0eba28
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 11 additions and 7 deletions

View file

@ -3,10 +3,11 @@
from argparse import Namespace
from pathlib import Path
from typing import Optional, TypedDict, Union
from typing import Literal, Optional, TypedDict, Union
from pmb.core.arch import Arch
CrossCompileType = Optional[Union[Literal["native"], Literal["crossdirect"]]]
PathString = Union[Path, str]
Env = dict[str, PathString]