fix incorrect tuple[T] (#6996)

Found from PyCQA/flake8-pyi#135.
This commit is contained in:
Jelle Zijlstra
2022-01-22 09:37:14 -08:00
committed by GitHub
parent 049a260acb
commit de5ec6a0d1
13 changed files with 24 additions and 28 deletions

View File

@@ -40,7 +40,7 @@ class _inherit: ...
inherit: Any
class combined(tuple[Any]):
class combined(tuple[Any, ...]):
def __new__(cls, *args): ...
def __init__(self, *args) -> None: ...

View File

@@ -1,6 +1,6 @@
from collections.abc import Mapping
class _TokenType(tuple[str]):
class _TokenType(tuple[str, ...]):
parent: _TokenType | None
def split(self) -> list[_TokenType]: ...
subtypes: set[_TokenType]