mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs. * Add StrOrBytesPath as preferred alias for AnyPath. * Replace all remaining AnyPath instances with StrOrBytesPath. * Mark AnyPath as obsolete. Part of #5470
23 lines
979 B
Python
23 lines
979 B
Python
from _typeshed import StrOrBytesPath
|
|
from types import CodeType
|
|
from typing import Any, List, Sequence, Tuple
|
|
|
|
def expr(source: str) -> STType: ...
|
|
def suite(source: str) -> 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 compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType: ...
|
|
def isexpr(st: STType) -> bool: ...
|
|
def issuite(st: STType) -> bool: ...
|
|
|
|
class ParserError(Exception): ...
|
|
|
|
class STType:
|
|
def compile(self, filename: StrOrBytesPath = ...) -> 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]: ...
|