Skip to content

Commit 69eaa9b

Browse files
committed
ci: Ignore mypy warnings
1 parent 7da7146 commit 69eaa9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mkdocs_autorefs/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
class AutorefsConfig(Config):
4747
"""Configuration options for the `autorefs` plugin."""
4848

49-
resolve_closest = Type(bool, default=False)
49+
resolve_closest: bool = Type(bool, default=False) # type: ignore[assignment]
5050
"""Whether to resolve an autoref to the closest URL when multiple URLs are found for an identifier.
5151
5252
By closest, we mean a combination of "relative to the current page" and "shortest distance from the current page".
@@ -272,7 +272,7 @@ def on_config(self, config: MkDocsConfig) -> MkDocsConfig | None:
272272
The modified config.
273273
"""
274274
log.debug("Adding AutorefsExtension to the list")
275-
config["markdown_extensions"].append(AutorefsExtension(self))
275+
config.markdown_extensions.append(AutorefsExtension(self)) # type: ignore[arg-type]
276276
return config
277277

278278
def on_page_markdown(self, markdown: str, page: Page, **kwargs: Any) -> str: # noqa: ARG002

0 commit comments

Comments
 (0)