aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/wikiget/logging.py')
-rw-r--r--src/wikiget/logging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wikiget/logging.py b/src/wikiget/logging.py
index 1536156..87b917c 100644
--- a/src/wikiget/logging.py
+++ b/src/wikiget/logging.py
@@ -16,6 +16,7 @@
# along with Wikiget. If not, see <https://www.gnu.org/licenses/>.
import logging
+from argparse import Namespace
import wikiget
@@ -25,7 +26,7 @@ class FileLogAdapter(logging.LoggerAdapter):
return f"[{self.extra['filename']}] {msg}", kwargs
-def configure_logging(args):
+def configure_logging(args: Namespace) -> None:
loglevel = logging.WARNING
if args.verbose >= wikiget.VERY_VERBOSE:
# this includes API and library messages