File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646class 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
You can’t perform that action at this time.
0 commit comments