8000 refactor: Stop accepting sets as return value of `get_anchors` (only … · mkdocstrings/mkdocstrings@2e10374 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e10374

Browse files
committed
refactor: Stop accepting sets as return value of get_anchors (only tuples), to preserve order
1 parent 0a90a47 commit 2e10374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mkdocstrings/handlers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def get_extended_templates_dirs(self, handler: str) -> list[Path]:
238238
discovered_extensions = entry_points(group=f"mkdocstrings.{handler}.templates")
239239
return [extension.load()() for extension in discovered_extensions]
240240

241-
def get_anchors(self, data: CollectorItem) -> tuple[str, ...] | set[str]: # noqa: ARG002
241+
def get_anchors(self, data: CollectorItem) -> tuple[str, ...]: # noqa: ARG002
242242
"""Return the possible identifiers (HTML anchors) for a collected item.
243243
244244
Arguments:

0 commit comments

Comments
 (0)
0