diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-15 09:52:00 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-15 09:52:00 -0800 |
| commit | ba782d54aa70a1faf6bf6cdcaeb446f7b4c503db (patch) | |
| tree | 285f960d4a7afe9d27ecca51e86e7f00fb914d22 /src/wikiget | |
| parent | 5ff82fcacf80f38395edc4f83fdc42b9670d87fd (diff) | |
| download | wikiget-ba782d54aa70a1faf6bf6cdcaeb446f7b4c503db.tar.gz wikiget-ba782d54aa70a1faf6bf6cdcaeb446f7b4c503db.zip | |
Add missing type annotations
Diffstat (limited to 'src/wikiget')
| -rw-r--r-- | src/wikiget/logging.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>. +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 |
