diff options
author | Daniel Eades <danieleades@hotmail.com> | 2022-12-15 17:22:07 +0000 |
---|---|---|
committer | Jean-François B <2589111+jfbu@users.noreply.github.com> | 2022-12-16 16:50:24 +0100 |
commit | 1abb24e309c8189eca2663f77c3a3aa866633e12 (patch) | |
tree | e74425a4c2647b8a5c6c7c980f00235fc12491b5 /sphinx/util/nodes.py | |
parent | dc29bf9abef764460ec5ec1c1571bddce9a4f7fa (diff) | |
download | sphinx-git-1abb24e309c8189eca2663f77c3a3aa866633e12.tar.gz |
remove blanket 'noqas'
Diffstat (limited to 'sphinx/util/nodes.py')
-rw-r--r-- | sphinx/util/nodes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index 289dcc92e..cf8287f0b 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -291,7 +291,9 @@ def get_prev_node(node: Node) -> Optional[Node]: return None -def traverse_translatable_index(doctree: Element) -> Iterable[Tuple[Element, List["IndexEntry"]]]: # NOQA +def traverse_translatable_index( + doctree: Element +) -> Iterable[Tuple[Element, List["IndexEntry"]]]: """Traverse translatable index node from a document tree.""" matcher = NodeMatcher(addnodes.index, inline=False) for node in doctree.findall(matcher): # type: addnodes.index |