pmbootstrap-meow/pmb/qemu
Newbyte 7d2f055bcb
pmb: Make RunOutputTypeDefault and RunOutputTypePopen enums
This allows us to get rid of some of the validation in sanity_checks()
as mypy handles this validation at "build time", and any typos in the
enum instantiation would be a runtime error rather than a silent
failure.

Additionally, it allows us to encode some of the behaviour of the
different output types into the type definition itself by using methods.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2642
2025-07-10 20:57:51 +02:00
..
__init__.py pmb: Use explicit re-exports (MR 2545) 2025-02-23 11:40:44 +01:00
run.py pmb: Make RunOutputTypeDefault and RunOutputTypePopen enums 2025-07-10 20:57:51 +02:00