mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 18:31:14 +08:00
Fix ast.parse(). The 2nd and 3rd arg are optional.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user