summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-06-30 22:17:47 +0200
committerGitHub <noreply@github.com>2021-06-30 22:17:47 +0200
commit3f98fa0be2279ff422a0e157705f4e3ea1e4d48f (patch)
tree84ae12a20a07c5be1127241c1ab8d3c7482b8b0b /astroid
parentb48b370b34c07be6b41bc669f0d65cddf1bfeb89 (diff)
downloadastroid-git-3f98fa0be2279ff422a0e157705f4e3ea1e4d48f.tar.gz
Use explicit __all__ for astroid.nodes (#1083)
Diffstat (limited to 'astroid')
-rw-r--r--astroid/nodes.py86
1 files changed, 84 insertions, 2 deletions
diff --git a/astroid/nodes.py b/astroid/nodes.py
index a85afe19..63597a96 100644
--- a/astroid/nodes.py
+++ b/astroid/nodes.py
@@ -195,5 +195,87 @@ ALL_NODE_CLASSES = (
YieldFrom,
)
-# Can't create a proper __all__ with string because of a cyclic import for ClassDef
-__all__ = [c.__name__ for c in ALL_NODE_CLASSES]
+__all__ = (
+ "AnnAssign",
+ "Arguments",
+ "Assert",
+ "Assign",
+ "AssignAttr",
+ "AssignName",
+ "AsyncFor",
+ "AsyncFunctionDef",
+ "AsyncWith",
+ "Attribute",
+ "AugAssign",
+ "Await",
+ "BinOp",
+ "BoolOp",
+ "Break",
+ "Call",
+ "ClassDef",
+ "Compare",
+ "Comprehension",
+ "Const",
+ "const_factory",
+ "Continue",
+ "Decorators",
+ "DelAttr",
+ "Delete",
+ "DelName",
+ "Dict",
+ "DictComp",
+ "DictUnpack",
+ "Ellipsis",
+ "EmptyNode",
+ "EvaluatedObject",
+ "ExceptHandler",
+ "Expr",
+ "ExtSlice",
+ "For",
+ "FormattedValue",
+ "FunctionDef",
+ "GeneratorExp",
+ "Global",
+ "If",
+ "IfExp",
+ "Import",
+ "ImportFrom",
+ "Index",
+ "JoinedStr",
+ "Keyword",
+ "Lambda",
+ "List",
+ "ListComp",
+ "Match",
+ "MatchAs",
+ "MatchCase",
+ "MatchClass",
+ "MatchMapping",
+ "MatchOr",
+ "MatchSequence",
+ "MatchSingleton",
+ "MatchStar",
+ "MatchValue",
+ "Module",
+ "Name",
+ "NamedExpr",
+ "NodeNG",
+ "Nonlocal",
+ "Pass",
+ "Raise",
+ "Return",
+ "Set",
+ "SetComp",
+ "Slice",
+ "Starred",
+ "Subscript",
+ "TryExcept",
+ "TryFinally",
+ "Tuple",
+ "UnaryOp",
+ "Unknown",
+ "While",
+ "With",
+ "Yield",
+ "YieldFrom",
+)