Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make python_apigen_default_groups also match canonical name #356

Merged
merged 1 commit into from
Jun 30, 2024
Merged
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
6 changes: 5 additions & 1 deletion sphinx_immaterial/apidoc/python/apigen.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,13 @@ def _get_group_name(
:returns: The group name.
"""
s = f"{entity.objtype}:{entity.documented_full_name}"
s_canonical = f"{entity.objtype}:{entity.canonical_full_name}"
group = "Public members"
for pattern, default_group in default_groups:
if pattern.fullmatch(s) is not None:
if (
pattern.fullmatch(s) is not None
or pattern.fullmatch(s_canonical) is not None
):
group = default_group
return group

Expand Down
Loading