Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.10/site-packages/astroid/astroid_manager.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

1""" 

2This file contain the global astroid MANAGER. 

3 

4It prevents a circular import that happened 

5when the only possibility to import it was from astroid.__init__.py. 

6 

7This AstroidManager is a singleton/borg so it's possible to instantiate an 

8AstroidManager() directly. 

9""" 

10 

11# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html 

12# For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE 

13# Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt 

14 

15from astroid.brain.helpers import register_all_brains 

16from astroid.manager import AstroidManager 

17 

18MANAGER = AstroidManager() 

19# Register all brains after instantiating the singleton Manager 

20register_all_brains(MANAGER)