From ba782d54aa70a1faf6bf6cdcaeb446f7b4c503db Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 15 Nov 2023 09:52:00 -0800 Subject: Add missing type annotations --- src/wikiget/logging.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wikiget/logging.py b/src/wikiget/logging.py index 6673877..6614a15 100644 --- a/src/wikiget/logging.py +++ b/src/wikiget/logging.py @@ -15,13 +15,18 @@ # You should have received a copy of the GNU General Public License # along with Wikiget. If not, see . +from __future__ import annotations + import logging +from typing import Any, MutableMapping import wikiget class FileLogAdapter(logging.LoggerAdapter): - def process(self, msg, kwargs): + def process( + self, msg: Any, kwargs: MutableMapping[str, Any] + ) -> tuple[str, MutableMapping[str, Any]]: return f"[{self.extra['filename']}] {msg}", kwargs -- cgit v1.2.3