|
3 | 3 | import typing
|
4 | 4 | from typing import Any, Union, Iterator
|
5 | 5 |
|
6 |
| -from _ast import ( |
7 |
| - Add, alias, And, arg, arguments, Assert, Assign, AST, AsyncFor, |
8 |
| - AsyncFunctionDef, AsyncWith, Attribute, AugAssign, AugLoad, AugStore, |
9 |
| - Await, BinOp, BitAnd, BitOr, BitXor, BoolOp, boolop, Break, Bytes, Call, |
10 |
| - ClassDef, cmpop, Compare, comprehension, Continue, Del, Delete, Dict, |
11 |
| - DictComp, Div, Ellipsis, Eq, ExceptHandler, Expr, expr, Expression, |
12 |
| - expr_context, ExtSlice, FloorDiv, For, FunctionDef, GeneratorExp, Global, |
13 |
| - Gt, GtE, If, IfExp, Import, ImportFrom, In, Index, Interactive, Invert, Is, |
14 |
| - IsNot, keyword, Lambda, List, ListComp, Load, LShift, Lt, LtE, MatMult, |
15 |
| - Mod, mod, Module, Mult, Name, NameConstant, Nonlocal, Not, NotEq, NotIn, |
16 |
| - Num, operator, Or, Param, Pass, Pow, Raise, Return, RShift, Set, SetComp, |
17 |
| - Slice, slice, Starred, stmt, Store, Str, Sub, Subscript, Suite, Try, Tuple, |
18 |
| - UAdd, UnaryOp, unaryop, USub, While, With, withitem, Yield, YieldFrom |
19 |
| -) |
| 6 | +from _ast import * |
20 | 7 |
|
21 | 8 | class NodeVisitor():
|
22 | 9 | def visit(self, node: AST) -> Any: ...
|
|
0 commit comments