]> git.madduck.net Git - etc/vim.git/blob - blib2to3/pgen2/driver.pyi

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Don't mark subtrees as changed that were already marked.
[etc/vim.git] / blib2to3 / pgen2 / driver.pyi
1 # Stubs for lib2to3.pgen2.driver (Python 3.6)
2
3 import os
4 import sys
5 from typing import Any, Callable, IO, Iterable, List, Optional, Text, Tuple, Union
6
7 from logging import Logger
8 from blib2to3.pytree import _Convert, _NL
9 from blib2to3.pgen2 import _Path
10 from blib2to3.pgen2.grammar import Grammar
11
12
13 class Driver:
14     grammar: Grammar
15     logger: Logger
16     convert: _Convert
17     def __init__(self, grammar: Grammar, convert: Optional[_Convert] = ..., logger: Optional[Logger] = ...) -> None: ...
18     def parse_tokens(self, tokens: Iterable[Any], debug: bool = ...) -> _NL: ...
19     def parse_stream_raw(self, stream: IO[Text], debug: bool = ...) -> _NL: ...
20     def parse_stream(self, stream: IO[Text], debug: bool = ...) -> _NL: ...
21     def parse_file(self, filename: _Path, encoding: Optional[Text] = ..., debug: bool = ...) -> _NL: ...
22     def parse_string(self, text: Text, debug: bool = ...) -> _NL: ...
23
24 def load_grammar(gt: Text = ..., gp: Optional[Text] = ..., save: bool = ..., force: bool = ..., logger: Optional[Logger] = ...) -> Grammar: ...