Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-06-01 02:38:55 +0300
committerAdam Turner <9087854+AA-Turner@users.noreply.github.com>2022-06-01 02:38:55 +0300
commit244ab1c015ff869fbe0757d5cb872c5bf9a2d656 (patch)
treeadfc5c4ce3f6f91ff8c743f7880306352f658e70
parent23a4b614157b3e69d4f43075dc6cacd05fecf3b9 (diff)
Add annotation
-rw-r--r--sphinx/builders/html/transforms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/html/transforms.py b/sphinx/builders/html/transforms.py
index 7f96c4e60..a2944c017 100644
--- a/sphinx/builders/html/transforms.py
+++ b/sphinx/builders/html/transforms.py
@@ -42,7 +42,7 @@ class KeyboardTransform(SphinxPostTransform):
matcher = NodeMatcher(nodes.literal, classes=["kbd"])
# this list must be pre-created as during iteration new nodes
# are added which match the condition in the NodeMatcher.
- nodes_to_expand = list(self.document.findall(matcher))
+ nodes_to_expand: List[nodes.literal] = list(self.document.findall(matcher))
for node in nodes_to_expand: # type: nodes.literal
parts = self.pattern.split(node[-1].astext())
if len(parts) == 1 or self.is_multiwords_key(parts):