forked from Mirror/pmbootstrap
pmb.helpers.logging: wrap logging module (MR 2252)
We use a custom verbose log level in pmbootstrap, unfortunately it isn't possible to correctly type this due to some limitations in the logging library [1], [2]. Given that our usecase is fairly simple, we can just wrap the module with our own so we only have to tell mypy to ignore the error once instead of at every callsite. [1]: https://github.com/cryptax/droidlysis/issues/15 [2]: https://github.com/python/typing/discussions/980 Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
4b6c198ca4
commit
71e7af57e6
65 changed files with 110 additions and 69 deletions
|
@ -1,6 +1,6 @@
|
|||
# Copyright 2023 Danct12 <danct12@disroot.org>
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
import logging
|
||||
from pmb.helpers import logging
|
||||
import os
|
||||
|
||||
import pmb.chroot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue