Skip to content

Commit 57ed0c6

Browse files
committed
ci: Fix mypy warnings
1 parent 024ee82 commit 57ed0c6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/mkdocstrings/extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"""
2424
import re
2525
from collections import ChainMap
26-
from typing import Mapping, MutableSequence, Tuple
26+
from typing import Mapping, MutableMapping, MutableSequence, Tuple
2727
from xml.etree.ElementTree import Element
2828

2929
import yaml
@@ -207,7 +207,7 @@ def _process_block(
207207
return rendered, handler, data
208208

209209

210-
def get_item_configs(handler_config: dict, config: dict) -> Tuple[Mapping, Mapping]:
210+
def get_item_configs(handler_config: dict, config: dict) -> Tuple[Mapping, MutableMapping]:
211211
"""Get the selection and rendering configuration merged into the global configuration of the given handler.
212212
213213
Arguments:

src/mkdocstrings/handlers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def get_handler(self, name: str, handler_config: Optional[dict] = None) -> BaseH
398398
if handler_config is None:
399399
handler_config = self.get_handler_config(name)
400400
module = importlib.import_module(f"mkdocstrings.handlers.{name}")
401-
self._handlers[name] = module.get_handler( # type: ignore
401+
self._handlers[name] = module.get_handler(
402402
self._config["theme_name"],
403403
self._config["mkdocstrings"]["custom_templates"],
404404
**handler_config,

0 commit comments

Comments
 (0)