about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-01-05 13:06:15 -0600
committerFrederick Muriuki Muriithi2026-01-05 13:06:15 -0600
commit43f0a336238204a00a8c30ca396e95aecb718705 (patch)
treea242eeb8110f4d9c837b16abb0be8f9a12a912b1
parent06e90d15fe285ab37319c11f3c58be25e8bde339 (diff)
downloadgn-libs-43f0a336238204a00a8c30ca396e95aecb718705.tar.gz
Setup type information for `app_logger` argument.
Setup the type information to help with type-checking.
-rw-r--r--gn_libs/logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_libs/logging.py b/gn_libs/logging.py
index 0317be6..28b4b41 100644
--- a/gn_libs/logging.py
+++ b/gn_libs/logging.py
@@ -33,7 +33,7 @@ def setup_logging(app: Flask) -> Flask:
     return __log_gunicorn__(app) if bool(software) else __log_dev__(app)
 
 
-def setup_modules_logging(app_logger, modules: tuple[str, ...]):
+def setup_modules_logging(app_logger: logging.Logger, modules: tuple[str, ...]):
     """Setup module-level loggers to the same log-level as the application."""
     loglevel = logging.getLevelName(app_logger.getEffectiveLevel())
     for module in modules: