astroid_manager.py 572 B

1234567891011121314151617
  1. """
  2. This file contain the global astroid MANAGER.
  3. It prevents a circular import that happened
  4. when the only possibility to import it was from astroid.__init__.py.
  5. This AstroidManager is a singleton/borg so it's possible to instantiate an
  6. AstroidManager() directly.
  7. """
  8. # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
  9. # For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
  10. # Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
  11. from astroid.manager import AstroidManager
  12. MANAGER = AstroidManager()