Add lots of type hints, fix some bugs, and clean up some code
I may have gone a bit overboard. See individual commits.
Merge request reports
Activity
added type::fix label
added 1 commit
- 8c34f726 - pyproject.toml: Set disallow_untyped_decorators = true
changed milestone to %3.0.0 critical path (blockers only!!)
added 23 commits
- 04188dce...826bb4f2 - 13 earlier commits
- 47c84925 - pmb.qemu.run: Use f-string for img_path_2nd argument building (MR 2464)
- d4ea7807 - pmb.helpers.run_core: Properly type pipe_read() (MR 2464)
- d5586979 - pmb.sideload: Separate distinct uses of add_cmd into different variables (MR 2464)
- fc44b642 - pmb.flasher.init: Assert that depends is a list (MR 2464)
- 8bc848fa - pmb.install._install: Use bool(...) when figuring out whether to use cgpt (MR 2464)
- b49da9ad - pmb.install.recovery: Check for None before going through blacklist (MR 2464)
- d05d57b3 - pmb.install.recovery: Assert that partitions are not None (MR 2464)
- 225d8b30 - pmb: Add lots of type hints (MR 2464)
- f24b6e7c - pyproject.toml: Set disallow_incomplete_defs = true (MR 2464)
- 511d4900 - pyproject.toml: Set disallow_untyped_decorators = true (MR 2464)
Toggle commit listDamn, this must have been a lot of work. Thank you so much for doing this, @Newbyte!
(Not sure if you have further large refactoring / type hint improvements like this planned, but if you do, I'd suggest to wait until 3.0.0 is out.)
Edited by Oliver Smithenabled an automatic merge when all merge checks for 511d4900 pass
Please register or sign in to reply