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

@@ -6,7 +6,7 @@ def suite(source: Text) -> STType: ...
def sequence2st(sequence: Sequence[Any]) -> STType: ...
def tuple2st(sequence: Sequence[Any]) -> STType: ...
def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> tuple[Any]: ...
def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]: ...
def compilest(st: STType, filename: Text = ...) -> CodeType: ...
def isexpr(st: STType) -> bool: ...
def issuite(st: STType) -> bool: ...
@@ -18,4 +18,4 @@ class STType:
def isexpr(self) -> bool: ...
def issuite(self) -> bool: ...
def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tuple[Any]: ...
def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]: ...