Skip to content

Commit

Permalink
Make python_apigen_default_groups also match canonical name (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbms authored Jun 30, 2024
1 parent e3e7fb0 commit e8dc677
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit e8dc677

Please sign in to comment.