1 from _typeshed import StrPath
2 from lib2to3.pgen2.grammar import Grammar
3 from lib2to3.pytree import _NL, _Convert
4 from logging import Logger
5 from typing import IO, Any, Iterable
11 def __init__(self, grammar: Grammar, convert: _Convert | None = ..., logger: Logger | None = ...) -> None: ...
12 def parse_tokens(self, tokens: Iterable[Any], debug: bool = ...) -> _NL: ...
13 def parse_stream_raw(self, stream: IO[str], debug: bool = ...) -> _NL: ...
14 def parse_stream(self, stream: IO[str], debug: bool = ...) -> _NL: ...
15 def parse_file(self, filename: StrPath, encoding: str | None = ..., debug: bool = ...) -> _NL: ...
16 def parse_string(self, text: str, debug: bool = ...) -> _NL: ...
19 gt: str = ..., gp: str | None = ..., save: bool = ..., force: bool = ..., logger: Logger | None = ...