Skip to content

Commit

Permalink
Work-in-progress: fixup: ignore type-hinting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jul 16, 2024
1 parent e63b2b3 commit 8d5ed1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def _minify_tree_recursive(trie: IndexBuilder._TrieNode) -> IndexBuilder._TrieNo
if node_terms := subnode.get(cls._TRIE_CONTENTS, []):
offsets = [term_offsets[term] for term in node_terms]
# Replace single-valued contents with integers instead of list values.
subnode[cls._TRIE_CONTENTS] = offsets[0] if len(offsets) == 1 else offsets
subnode[cls._TRIE_CONTENTS] = offsets[0] if len(offsets) == 1 else offsets # type: ignore[assignment]

# Replace single-leaf content nodes (dictionaries) with their (list) contents.
if len(subnode) == 1 and cls._TRIE_CONTENTS in subnode:
Expand Down

0 comments on commit 8d5ed1e

Please sign in to comment.