mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from types import CodeType
|
||||
from typing import Any, List, Sequence, Text, Tuple
|
||||
from typing import Any, Sequence, Text
|
||||
|
||||
def expr(source: Text) -> STType: ...
|
||||
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 st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[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: ...
|
||||
@@ -17,5 +17,5 @@ class STType:
|
||||
def compile(self, filename: Text = ...) -> CodeType: ...
|
||||
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 tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
|
||||
def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tuple[Any]: ...
|
||||
|
||||
Reference in New Issue
Block a user