| 1 |
from _typeshed import StrOrBytesPath |
| 2 |
from collections.abc import Sequence |
| 3 |
from types import CodeType |
| 4 |
from typing import Any, ClassVar, final |
| 5 |
|
| 6 |
def expr(source: str) -> STType: ... |
| 7 |
def suite(source: str) -> STType: ... |
| 8 |
def sequence2st(sequence: Sequence[Any]) -> STType: ... |
| 9 |
def tuple2st(sequence: Sequence[Any]) -> STType: ... |
| 10 |
def st2list(st: STType, line_info: bool = False, col_info: bool = False) -> list[Any]: ... |
| 11 |
def st2tuple(st: STType, line_info: bool = False, col_info: bool = False) -> tuple[Any, ...]: ... |
| 12 |
def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType: ... |
| 13 |
def isexpr(st: STType) -> bool: ... |
| 14 |
def issuite(st: STType) -> bool: ... |
| 15 |
|
| 16 |
class ParserError(Exception): ... |
| 17 |
|
| 18 |
@final |
| 19 |
class STType: |
| 20 |
__hash__: ClassVar[None] |
| 21 |
def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ... |
| 22 |
def isexpr(self) -> bool: ... |
| 23 |
def issuite(self) -> bool: ... |
| 24 |
def tolist(self, line_info: bool = False, col_info: bool = False) -> list[Any]: ... |
| 25 |
def totuple(self, line_info: bool = False, col_info: bool = False) -> tuple[Any, ...]: ... |