1 from _typeshed import StrOrBytesPath
2 from types import CodeType
3 from typing import Any, Sequence, Tuple
5 def expr(source: str) -> STType: ...
6 def suite(source: str) -> STType: ...
7 def sequence2st(sequence: Sequence[Any]) -> STType: ...
8 def tuple2st(sequence: Sequence[Any]) -> STType: ...
9 def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
10 def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any, ...]: ...
11 def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType: ...
12 def isexpr(st: STType) -> bool: ...
13 def issuite(st: STType) -> bool: ...
15 class ParserError(Exception): ...
18 def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ...
19 def isexpr(self) -> bool: ...
20 def issuite(self) -> bool: ...
21 def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
22 def totuple(self, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any, ...]: ...