aboutsummaryrefslogtreecommitdiff
path: root/src/wikiget/logging.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-15 10:02:48 -0800
committerGitHub <noreply@github.com>2023-11-15 10:02:48 -0800
commit55a5311ee4da639a65bd60622315f3fff6936c9a (patch)
tree285f960d4a7afe9d27ecca51e86e7f00fb914d22 /src/wikiget/logging.py
parent96316c8be7bc21617ec5333f87864a0f002ebaa4 (diff)
parentba782d54aa70a1faf6bf6cdcaeb446f7b4c503db (diff)
downloadwikiget-55a5311ee4da639a65bd60622315f3fff6936c9a.tar.gz
wikiget-55a5311ee4da639a65bd60622315f3fff6936c9a.zip
Merge pull request #13 from clpo13/testing-tmp-folder
Change to temp directory when running tests
Diffstat (limited to 'src/wikiget/logging.py')
-rw-r--r--src/wikiget/logging.py7
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