From 24325ff460dfa5c80bc8ff74b02234126cfe1235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 27 Feb 2024 13:12:10 +0100 Subject: [PATCH] ci: Fix type of the fallback callable --- src/mkdocs_autorefs/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkdocs_autorefs/plugin.py b/src/mkdocs_autorefs/plugin.py index 5eca316..64b9feb 100644 --- a/src/mkdocs_autorefs/plugin.py +++ b/src/mkdocs_autorefs/plugin.py @@ -57,7 +57,7 @@ def __init__(self) -> None: super().__init__() self._url_map: dict[str, str] = {} self._abs_url_map: dict[str, str] = {} - self.get_fallback_anchor: Callable[[str], str | None] | None = None + self.get_fallback_anchor: Callable[[str], tuple[str, ...]] | None = None def register_anchor(self, page: str, identifier: str) -> None: """Register that an anchor corresponding to an identifier was encountered when rendering the page.