Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/astroid/nodes/scoped_nodes/__init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:53 +0000

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

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

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

4 

5"""This module contains all classes that are considered a "scoped" node and anything 

6related. 

7 

8A scope node is a node that opens a new local scope in the language definition: 

9Module, ClassDef, FunctionDef (and Lambda, GeneratorExp, DictComp and SetComp to some extent). 

10""" 

11 

12from astroid.nodes.scoped_nodes.mixin import ComprehensionScope, LocalsDictNodeNG 

13from astroid.nodes.scoped_nodes.scoped_nodes import ( 

14 AsyncFunctionDef, 

15 ClassDef, 

16 DictComp, 

17 FunctionDef, 

18 GeneratorExp, 

19 Lambda, 

20 ListComp, 

21 Module, 

22 SetComp, 

23 _is_metaclass, 

24 function_to_method, 

25 get_wrapping_class, 

26) 

27from astroid.nodes.scoped_nodes.utils import builtin_lookup 

28 

29__all__ = ( 

30 "AsyncFunctionDef", 

31 "ClassDef", 

32 "ComprehensionScope", 

33 "DictComp", 

34 "FunctionDef", 

35 "GeneratorExp", 

36 "Lambda", 

37 "ListComp", 

38 "LocalsDictNodeNG", 

39 "Module", 

40 "SetComp", 

41 "builtin_lookup", 

42 "function_to_method", 

43 "get_wrapping_class", 

44 "_is_metaclass", 

45)