diff options
author | danieleades <33452915+danieleades@users.noreply.github.com> | 2022-09-28 09:13:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 09:13:48 +0100 |
commit | 6dbb61883404337f28b849781c95fe5de46d33c0 (patch) | |
tree | 1194891c20350deb17fd503ec8aef9f8a55556c1 /sphinx/pycode/parser.py | |
parent | b437f094a70f9268016aa5ddf8dbe4891b4210ee (diff) | |
download | sphinx-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.py | 2 |
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: |