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