4 from typing import Any, Iterator, Union
\r
7 from _ast import AST, Module
\r
9 __version__ = ... # type: str
\r
10 PyCF_ONLY_AST = ... # type: int
\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
24 class NodeVisitor():
\r
25 def visit(self, node: AST) -> Any: ...
\r
26 def generic_visit(self, node: AST) -> None: ...
\r
28 class NodeTransformer(NodeVisitor):
\r
29 def generic_visit(self, node: AST) -> None: ...
\r