Skip to content

Commit 94b4af6

Browse files
committed
ci: Fix typing
1 parent b857467 commit 94b4af6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/mkdocs_autorefs/plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from mkdocs_autorefs.references import AutorefsExtension, fix_refs, relative_url
2424

2525
if TYPE_CHECKING:
26-
from mkdocs.config import Config
26+
from mkdocs.config.defaults import MkDocsConfig
2727
from mkdocs.structure.pages import Page
2828
from mkdocs.structure.toc import AnchorLink
2929

@@ -113,7 +113,7 @@ def get_item_url(
113113
return relative_url(from_url, url)
114114
return url
115115

116-
def on_config(self, config: Config, **kwargs: Any) -> Config: # noqa: ARG002
116+
def on_config(self, config: MkDocsConfig) -> MkDocsConfig | None:
117117
"""Instantiate our Markdown extension.
118118
119119
Hook for the [`on_config` event](https://www.mkdocs.org/user-guide/plugins/#on_config).
@@ -122,7 +122,6 @@ def on_config(self, config: Config, **kwargs: Any) -> Config: # noqa: ARG002
122122
123123
Arguments:
124124
config: The MkDocs config object.
125-
kwargs: Additional arguments passed by MkDocs.
126125
127126
Returns:
128127
The modified config.

0 commit comments

Comments
 (0)