pmb: Add more type hints (MR 2513)

And fix some consequential type errors.

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Newbyte 2024-12-19 18:49:49 +01:00
parent c8194302fc
commit 0925b3e425
No known key found for this signature in database
GPG key ID: ACD854892B38D898
12 changed files with 69 additions and 19 deletions

View file

@ -34,7 +34,7 @@ class log_handler(logging.StreamHandler):
self.styles = pmb.config.styles
def emit(self, record):
def emit(self, record: logging.LogRecord) -> None:
try:
msg = self.format(record)