massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / ast.pyi
1 # Python 2.7 ast\r
2 \r
3 import typing\r
4 from typing import Any, Iterator, Union\r
5 \r
6 from _ast import *\r
7 from _ast import AST, Module\r
8 \r
9 __version__ = ...  # type: str\r
10 PyCF_ONLY_AST = ...  # type: int\r
11 \r
12 \r
13 def parse(source: Union[str, unicode], filename: Union[str, unicode] = ..., mode: Union[str, unicode] = ...) -> Module: ...\r
14 def copy_location(new_node: AST, old_node: AST) -> AST: ...\r
15 def dump(node: AST, annotate_fields: bool = ..., include_attributes: bool = ...) -> str: ...\r
16 def fix_missing_locations(node: AST) -> AST: ...\r
17 def get_docstring(node: AST, clean: bool = ...) -> str: ...\r
18 def increment_lineno(node: AST, n: int = ...) -> AST: ...\r
19 def iter_child_nodes(node: AST) -> Iterator[AST]: ...\r
20 def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ...\r
21 def literal_eval(node_or_string: Union[str, unicode, AST]) -> Any: ...\r
22 def walk(node: AST) -> Iterator[AST]: ...\r
23 \r
24 class NodeVisitor():\r
25     def visit(self, node: AST) -> Any: ...\r
26     def generic_visit(self, node: AST) -> None: ...\r
27 \r
28 class NodeTransformer(NodeVisitor):\r
29     def generic_visit(self, node: AST) -> None: ...\r