Fix ast.parse(). The 2nd and 3rd arg are optional.

This commit is contained in:
Matthias Kramm
2016-01-27 19:25:59 -08:00
parent 9cc81d4eeb
commit 9b9c232f75

View File

@@ -27,7 +27,7 @@ def increment_lineno(node, *args, **kwargs) -> Any: ...
def iter_child_nodes(node) -> Generator[Any, Any, Any]: ...
def iter_fields(node) -> Any: ... # TODO: Generator[Tuple[Any, ...]]: ...
def literal_eval(node_or_string) -> Any: ...
def parse(source, filename, mode, *args, **kwargs) -> Any: ...
def parse(source, filename = ..., mode = ..., *args, **kwargs) -> AST: ...
def walk(node) -> Any: ... # TODO: Generator[Any]: ...
class NodeVisitor(object):