summaryrefslogtreecommitdiff
path: root/sphinx/builders/text.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-04-10 00:32:26 +0900
committerGitHub <noreply@github.com>2021-04-10 00:32:26 +0900
commitfe6d95e4294f47d61f1a04a1f8c6567c9802f504 (patch)
tree33a7143bf1dcf60830c2e1fcd4b396175af45e64 /sphinx/builders/text.py
parent7327e56dff865d4766c43d46405ae827e10fd6c3 (diff)
parentce5d66e618c111b115a9bb7b1401a26483fcfa8f (diff)
downloadsphinx-git-fe6d95e4294f47d61f1a04a1f8c6567c9802f504.tar.gz
Merge branch 'master' into patch-1
Diffstat (limited to 'sphinx/builders/text.py')
-rw-r--r--sphinx/builders/text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/text.py b/sphinx/builders/text.py
index ae770818c..2ac1b2878 100644
--- a/sphinx/builders/text.py
+++ b/sphinx/builders/text.py
@@ -33,11 +33,11 @@ class TextBuilder(Builder):
allow_parallel = True
default_translator_class = TextTranslator
- current_docname = None # type: str
+ current_docname: str = None
def init(self) -> None:
# section numbers for headings in the currently visited document
- self.secnumbers = {} # type: Dict[str, Tuple[int, ...]]
+ self.secnumbers: Dict[str, Tuple[int, ...]] = {}
def get_outdated_docs(self) -> Iterator[str]:
for docname in self.env.found_docs: