Skip to content

Re-export code from _ast into ast #1515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions stdlib/2/ast.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,7 @@
import typing
from typing import Any, Iterator, Union

from _ast import (
Add, alias, And, arguments, Assert, Assign, AST, Attribute, AugAssign,
AugLoad, AugStore, BinOp, BitAnd, BitOr, BitXor, BoolOp, boolop, Break,
Call, ClassDef, cmpop, Compare, comprehension, Continue, Del, Delete, Dict,
DictComp, Div, Ellipsis, Eq, ExceptHandler, Exec, Expr, expr, Expression,
expr_context, ExtSlice, FloorDiv, For, FunctionDef, GeneratorExp, Global,
Gt, GtE, If, IfExp, Import, ImportFrom, In, Index, Interactive, Invert, Is,
IsNot, keyword, Lambda, List, ListComp, Load, LShift, Lt, LtE, Mod, mod,
Module, Mult, Name, Not, NotEq, NotIn, Num, operator, Or, Param, Pass, Pow,
Print, Raise, Repr, Return, RShift, Set, SetComp, Slice, slice, stmt,
Store, Str, Sub, Subscript, Suite, TryExcept, TryFinally, Tuple, UAdd,
UnaryOp, unaryop, USub, While, With, Yield
)
from _ast import *

__version__ = ... # type: str
PyCF_ONLY_AST = ... # type: int
Expand Down
15 changes: 1 addition & 14 deletions stdlib/3/ast.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,7 @@
import typing
from typing import Any, Union, Iterator

from _ast import (
Add, alias, And, arg, arguments, Assert, Assign, AST, AsyncFor,
AsyncFunctionDef, AsyncWith, Attribute, AugAssign, AugLoad, AugStore,
Await, BinOp, BitAnd, BitOr, BitXor, BoolOp, boolop, Break, Bytes, Call,
ClassDef, cmpop, Compare, comprehension, Continue, Del, Delete, Dict,
DictComp, Div, Ellipsis, Eq, ExceptHandler, Expr, expr, Expression,
expr_context, ExtSlice, FloorDiv, For, FunctionDef, GeneratorExp, Global,
Gt, GtE, If, IfExp, Import, ImportFrom, In, Index, Interactive, Invert, Is,
IsNot, keyword, Lambda, List, ListComp, Load, LShift, Lt, LtE, MatMult,
Mod, mod, Module, Mult, Name, NameConstant, Nonlocal, Not, NotEq, NotIn,
Num, operator, Or, Param, Pass, Pow, Raise, Return, RShift, Set, SetComp,
Slice, slice, Starred, stmt, Store, Str, Sub, Subscript, Suite, Try, Tuple,
UAdd, UnaryOp, unaryop, USub, While, With, withitem, Yield, YieldFrom
)
from _ast import *

class NodeVisitor():
def visit(self, node: AST) -> Any: ...
Expand Down