diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-21 09:39:39 +0200 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-21 17:27:06 +0200 |
| commit | 9e41ec110e49a14c7b84ab9f905896fb1ed1194f (patch) | |
| tree | fabce6bfc371f819c149869436d6d6ea9283bc83 | |
| parent | a002e08c6c881253fcddb729c7738106283b3f20 (diff) | |
| download | astroid-git-9e41ec110e49a14c7b84ab9f905896fb1ed1194f.tar.gz | |
Crate a ``__all__`` in ``astroid.nodes``
See https://github.com/PyCQA/astroid/pull/1067#discussion_r655428869
| -rw-r--r-- | astroid/nodes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/astroid/nodes.py b/astroid/nodes.py index 1f41f86d..a85afe19 100644 --- a/astroid/nodes.py +++ b/astroid/nodes.py @@ -194,3 +194,6 @@ ALL_NODE_CLASSES = ( Yield, 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] |
