aboutsummaryrefslogtreecommitdiff
path: root/astroid/astroid_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/astroid_manager.py')
-rw-r--r--astroid/astroid_manager.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/astroid/astroid_manager.py b/astroid/astroid_manager.py
new file mode 100644
index 00000000..c8237a54
--- /dev/null
+++ b/astroid/astroid_manager.py
@@ -0,0 +1,15 @@
+"""
+This file contain the global astroid MANAGER, to prevent circular import that happened
+when the only possibility to import it was from astroid.__init__.py.
+
+This AstroidManager is a singleton/borg so it's possible to instantiate an
+AstroidManager() directly.
+"""
+
+# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
+# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
+
+
+from astroid.manager import AstroidManager
+
+MANAGER = AstroidManager()