diff options
Diffstat (limited to 'astroid/nodes.py')
-rw-r--r-- | astroid/nodes.py | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/astroid/nodes.py b/astroid/nodes.py index 8a6f1ebf..adcf7596 100644 --- a/astroid/nodes.py +++ b/astroid/nodes.py @@ -20,15 +20,18 @@ All nodes inherit from :class:`~astroid.node_classes.NodeNG`. """ # pylint: disable=unused-import,redefined-builtin -from astroid.node_classes import ( +from astroid.node_classes import ( # Node not present in the builtin ast module. + AnnAssign, Arguments, - AssignAttr, Assert, Assign, - AnnAssign, + AssignAttr, AssignName, + AsyncFor, + AsyncWith, + Attribute, AugAssign, - Repr, + Await, BinOp, BoolOp, Break, @@ -39,23 +42,26 @@ from astroid.node_classes import ( Continue, Decorators, DelAttr, - DelName, Delete, + DelName, Dict, - Expr, + DictUnpack, Ellipsis, EmptyNode, + EvaluatedObject, ExceptHandler, Exec, + Expr, ExtSlice, For, - ImportFrom, - Attribute, + FormattedValue, Global, If, IfExp, Import, + ImportFrom, Index, + JoinedStr, Keyword, List, Name, @@ -64,6 +70,7 @@ from astroid.node_classes import ( Pass, Print, Raise, + Repr, Return, Set, Slice, @@ -73,34 +80,25 @@ from astroid.node_classes import ( TryFinally, Tuple, UnaryOp, + Unknown, While, With, Yield, YieldFrom, const_factory, - AsyncFor, - Await, - AsyncWith, - FormattedValue, - JoinedStr, - # Node not present in the builtin ast module. - DictUnpack, - Unknown, - EvaluatedObject, ) from astroid.scoped_nodes import ( - Module, + AsyncFunctionDef, + ClassDef, + DictComp, + FunctionDef, GeneratorExp, Lambda, - DictComp, ListComp, + Module, SetComp, - FunctionDef, - ClassDef, - AsyncFunctionDef, ) - ALL_NODE_CLASSES = ( AsyncFunctionDef, AsyncFor, |