Skip to content

Commit b19fee3

Browse files
committed
ci: Remove unused type ignore comments
1 parent 46cea79 commit b19fee3

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/mkdocstrings/extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(
7979
self._autorefs = autorefs
8080
self._updated_env = False
8181

82-
def test(self, parent: Element, block: str) -> bool: # type: ignore
82+
def test(self, parent: Element, block: str) -> bool:
8383
"""Match our autodoc instructions.
8484
8585
Arguments:
@@ -108,7 +108,7 @@ def run(self, parent: Element, blocks: MutableSequence[str]) -> None:
108108
if match.start() > 0:
109109
self.parser.parseBlocks(parent, [block[: match.start()]])
110110
# removes the first line
111-
block = block[match.end() :] # type: ignore
111+
block = block[match.end() :]
112112

113113
block, the_rest = self.detab(block)
114114

src/mkdocstrings/handlers/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def __init__(self, directory: str, theme: str, custom_templates: Optional[str] =
104104

105105
self.env = Environment(
106106
autoescape=True,
107-
loader=FileSystemLoader(paths), # type: ignore
107+
loader=FileSystemLoader(paths),
108108
auto_reload=False, # Editing a template in the middle of a build is not useful.
109-
) # type: ignore
109+
)
110110
self.env.filters["any"] = do_any
111111
self.env.globals["log"] = get_template_logger()
112112

@@ -402,7 +402,7 @@ def get_handler(self, name: str, handler_config: Optional[dict] = None) -> BaseH
402402
self._config["theme_name"],
403403
self._config["mkdocstrings"]["custom_templates"],
404404
**handler_config,
405-
) # type: ignore
405+
)
406406
return self._handlers[name]
407407

408408
@property

src/mkdocstrings/handlers/rendering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, md: Markdown):
6363
md: The Markdown instance to read configs from.
6464
"""
6565
config: Dict[str, Any] = {}
66-
for ext in md.registeredExtensions: # type: ignore
66+
for ext in md.registeredExtensions:
6767
if isinstance(ext, HighlightExtension) and (ext.enabled or not config):
6868
config = ext.getConfigs()
6969
break # This one takes priority, no need to continue looking

0 commit comments

Comments
 (0)