From b212fb44277e9c318d2830c6f5a1368c36f93490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9n=C3=A9dikt=20Tran?= <10796600+picnixz@users.noreply.github.com> Date: Sat, 3 Jun 2023 18:46:50 +0200 Subject: [PATCH] fix linter issues --- sphinx/writers/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/writers/text.py b/sphinx/writers/text.py index 7a25c2bfade..f2c327de106 100644 --- a/sphinx/writers/text.py +++ b/sphinx/writers/text.py @@ -397,7 +397,7 @@ def __init__(self, document: nodes.document, builder: TextBuilder) -> None: Used by visit_* and depart_* functions in conjunction with the tree traversal. Make sure that the pops correspond to the pushes. """ - self.context = [] + self.context: list[str] = [] def add_text(self, text: str) -> None: self.states[-1].append((-1, text))