summaryrefslogtreecommitdiff
path: root/sphinx/builders/text.py
diff options
context:
space:
mode:
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: