mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
29 lines
989 B
Python
29 lines
989 B
Python
# Automatically generated by pytype. May contain errors.
|
|
|
|
from typing import Any, Tuple, Generator
|
|
|
|
from _ast import *
|
|
|
|
__version__ = ... # type: int
|
|
PyCF_ONLY_AST = ... # type: int
|
|
|
|
def copy_location(new_node, old_node) -> Any: ...
|
|
def dump(node, *args, **kwargs) -> str: ...
|
|
def fix_missing_locations(node) -> Any: ...
|
|
def get_docstring(node, *args, **kwargs) -> Any: ...
|
|
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 walk(node) -> Any: ... # TODO: Generator[Any]: ...
|
|
|
|
class NodeVisitor(object):
|
|
__doc__ = ... # type: str
|
|
def generic_visit(self, node) -> None: ...
|
|
def visit(self, node) -> Any: ...
|
|
|
|
class NodeTransformer(NodeVisitor):
|
|
__doc__ = ... # type: str
|
|
def generic_visit(self, node) -> Any: ...
|