Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.10/site-packages/astroid/nodes/scoped_nodes/__init__.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

5 statements  

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 SYNTHETIC_ROOT, 

15 AsyncFunctionDef, 

16 ClassDef, 

17 DictComp, 

18 FunctionDef, 

19 GeneratorExp, 

20 Lambda, 

21 ListComp, 

22 Module, 

23 SetComp, 

24 _is_metaclass, 

25 function_to_method, 

26 get_wrapping_class, 

27) 

28from astroid.nodes.scoped_nodes.utils import builtin_lookup 

29 

30__all__ = ( 

31 "SYNTHETIC_ROOT", 

32 "AsyncFunctionDef", 

33 "ClassDef", 

34 "ComprehensionScope", 

35 "DictComp", 

36 "FunctionDef", 

37 "GeneratorExp", 

38 "Lambda", 

39 "ListComp", 

40 "LocalsDictNodeNG", 

41 "Module", 

42 "SetComp", 

43 "_is_metaclass", 

44 "builtin_lookup", 

45 "function_to_method", 

46 "get_wrapping_class", 

47)