summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-19 09:16:47 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-19 11:09:32 +0200
commit7de3e205318f3710572c15695ea38d384cee26fb (patch)
treed6695650effc81e6d51711f77a893aec08b5f0d5
parent2053bd23328d43cf4c9f7e9199d73e96a94bc668 (diff)
downloadastroid-git-7de3e205318f3710572c15695ea38d384cee26fb.tar.gz
Remove the __all__ that aren't necessary
-rw-r--r--astroid/const.py2
-rw-r--r--astroid/context.py1
-rw-r--r--astroid/nodes.py86
3 files changed, 2 insertions, 87 deletions
diff --git a/astroid/const.py b/astroid/const.py
index a0ff7906..795c3c1b 100644
--- a/astroid/const.py
+++ b/astroid/const.py
@@ -1,8 +1,6 @@
import enum
import sys
-__all__ = ["Load", "Store", "Del", "Context"]
-
PY37 = sys.version_info >= (3, 7)
PY38 = sys.version_info >= (3, 8)
PY39 = sys.version_info >= (3, 9)
diff --git a/astroid/context.py b/astroid/context.py
index 4295e272..147c7495 100644
--- a/astroid/context.py
+++ b/astroid/context.py
@@ -18,6 +18,7 @@ from typing import TYPE_CHECKING, MutableMapping, Optional, Sequence, Tuple
if TYPE_CHECKING:
from astroid.node_classes import NodeNG
+
_INFERENCE_CACHE = {}
diff --git a/astroid/nodes.py b/astroid/nodes.py
index 1f6b09d6..30512640 100644
--- a/astroid/nodes.py
+++ b/astroid/nodes.py
@@ -23,91 +23,7 @@ All nodes inherit from :class:`~astroid.node_classes.NodeNG`.
# Nodes not present in the builtin ast module: DictUnpack, Unknown, and EvaluatedObject.
-__all__ = (
- "AsyncFunctionDef",
- "AsyncFor",
- "AsyncWith",
- "Await",
- "Arguments",
- "AssignAttr",
- "Assert",
- "Assign",
- "AnnAssign",
- "AssignName",
- "AugAssign",
- "BinOp",
- "BoolOp",
- "Break",
- "Call",
- "ClassDef",
- "Compare",
- "Comprehension",
- "Const",
- "const_factory",
- "Continue",
- "Decorators",
- "DelAttr",
- "DelName",
- "Delete",
- "Dict",
- "DictComp",
- "DictUnpack",
- "Expr",
- "Ellipsis",
- "EmptyNode",
- "EvaluatedObject",
- "ExceptHandler",
- "ExtSlice",
- "For",
- "ImportFrom",
- "FunctionDef",
- "Attribute",
- "GeneratorExp",
- "Global",
- "If",
- "IfExp",
- "Import",
- "Index",
- "Keyword",
- "Lambda",
- "List",
- "ListComp",
- "Match",
- "MatchAs",
- "MatchCase",
- "MatchClass",
- "MatchMapping",
- "MatchOr",
- "MatchSequence",
- "MatchSingleton",
- "MatchStar",
- "MatchValue",
- "Name",
- "NamedExpr",
- "Nonlocal",
- "Module",
- "Pass",
- "Raise",
- "Return",
- "Set",
- "SetComp",
- "Slice",
- "Starred",
- "Subscript",
- "TryExcept",
- "TryFinally",
- "Tuple",
- "UnaryOp",
- "Unknown",
- "While",
- "With",
- "Yield",
- "YieldFrom",
- "FormattedValue",
- "JoinedStr",
-)
-
-from astroid.node_classes import ( # pylint: disable=redefined-builtin
+from astroid.node_classes import ( # pylint: disable=redefined-builtin (Ellipsis)
AnnAssign,
Arguments,
Assert,