summaryrefslogtreecommitdiff
path: root/sphinx/pycode/parser.py
diff options
context:
space:
mode:
authordanieleades <33452915+danieleades@users.noreply.github.com>2022-09-28 09:13:48 +0100
committerGitHub <noreply@github.com>2022-09-28 09:13:48 +0100
commit6dbb61883404337f28b849781c95fe5de46d33c0 (patch)
tree1194891c20350deb17fd503ec8aef9f8a55556c1 /sphinx/pycode/parser.py
parentb437f094a70f9268016aa5ddf8dbe4891b4210ee (diff)
downloadsphinx-git-6dbb61883404337f28b849781c95fe5de46d33c0.tar.gz
Shrink 'any-generics' whitelist for the `pycode` module (#10868)
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r--sphinx/pycode/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py
index 1019400a8..4a455cbc8 100644
--- a/sphinx/pycode/parser.py
+++ b/sphinx/pycode/parser.py
@@ -464,7 +464,7 @@ class DefinitionFinder(TokenProcessor):
super().__init__(lines)
self.decorator: Optional[Token] = None
self.context: List[str] = []
- self.indents: List = []
+ self.indents: List[Tuple[str, Optional[str], Optional[int]]] = []
self.definitions: Dict[str, Tuple[str, int, int]] = {}
def add_definition(self, name: str, entry: Tuple[str, int, int]) -> None: