mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
pmb.types.CrossCompileType: split up None
Replace None with the three things it is actually used for to make the code easier to follow: * "autodetect" * "unnecessary" * "qemu-only" I've used the term "unnecessary" instead of "native", because "native" was previously used for "cross-native", then "cross-native2" and it still sounds similar to these. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2568
This commit is contained in:
parent
0625ece550
commit
bef3b43343
4 changed files with 17 additions and 12 deletions
|
@ -8,7 +8,14 @@ from typing import Any, Literal, TypedDict
|
|||
|
||||
from pmb.core.arch import Arch
|
||||
|
||||
CrossCompileType = Literal["crossdirect", "cross-native", "cross-native2"] | None
|
||||
CrossCompileType = Literal[
|
||||
"autodetect",
|
||||
"unnecessary",
|
||||
"qemu-only",
|
||||
"crossdirect",
|
||||
"cross-native",
|
||||
"cross-native2",
|
||||
]
|
||||
RunOutputTypeDefault = Literal["log", "stdout", "interactive", "tui", "null"]
|
||||
RunOutputTypePopen = Literal["background", "pipe"]
|
||||
RunOutputType = RunOutputTypeDefault | RunOutputTypePopen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue