Skip to content

Commit

Permalink
Update sphinx/domains/std/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bénédikt Tran <[email protected]>
  • Loading branch information
jakobandersen and picnixz authored Apr 14, 2024
1 parent ddc704a commit 1754c28
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sphinx/domains/std/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,9 @@ def _intersphinx_resolve_xref_lookup(self, store: dict[str, dict[str, Any]],
# * 'term': https://github.com/sphinx-doc/sphinx/issues/9291
# * 'label': https://github.com/sphinx-doc/sphinx/issues/12008
target_lower = target.lower()
insensitive_matches = list(filter(lambda k: k.lower() == target_lower,
store[objtype].keys()))
if insensitive_matches:
return store[objtype][insensitive_matches[0]]
for object_name, object_data in store[objtype].items():

Check failure on line 1026 in sphinx/domains/std/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

sphinx/domains/std/__init__.py:1026:1: W191 Indentation contains tabs

Check failure on line 1026 in sphinx/domains/std/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E999)

sphinx/domains/std/__init__.py:1026:5: E999 SyntaxError: unindent does not match any outer indentation level
if object_name.lower() == target_lower:

Check failure on line 1027 in sphinx/domains/std/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

sphinx/domains/std/__init__.py:1027:1: W191 Indentation contains tabs
return object_data

Check failure on line 1028 in sphinx/domains/std/__init__.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W191)

sphinx/domains/std/__init__.py:1028:1: W191 Indentation contains tabs
return None

def get_objects(self) -> Iterator[tuple[str, str, str, str, str, int]]:
Expand Down

0 comments on commit 1754c28

Please sign in to comment.