Skip to content

Commit

Permalink
Fixup: include type namespace when checking for ambiguities.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Apr 29, 2024
1 parent 897e268 commit 7f0b375
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sphinx/util/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,11 @@ def load_v2(
# Some types require case insensitive matches:
# * 'term': https://github.com/sphinx-doc/sphinx/issues/9291
# * 'label': https://github.com/sphinx-doc/sphinx/issues/12008
if name.lower() in potential_ambiguities:
actual_ambiguities.add(f"{type}:{name}")
definition = f"{type}:{name}"
if definition.lower() in potential_ambiguities:
actual_ambiguities.add(definition)
else:
potential_ambiguities.add(name.lower())
potential_ambiguities.add(definition.lower())
if location.endswith('$'):
location = location[:-1] + name
location = join(uri, location)
Expand Down

0 comments on commit 7f0b375

Please sign in to comment.