Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/mkdocstrings_handlers/python/_internal/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class _StashCrossRefFilter:

@staticmethod
def _gen_key(length: int) -> str:
return "_" + "".join(random.choice(string.ascii_letters + string.digits) for _ in range(max(1, length - 1))) # noqa: S311
return "_" + "".join(random.choice(string.ascii_letters + string.digits) for _ in range(max(2, length - 1))) # noqa: S311

def _gen_stash_key(self, length: int) -> str:
key = self._gen_key(length)
Expand Down
Loading