1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE
# Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt
"""This module contains all classes that are considered a "scoped" node and anything
related.
A scope node is a node that opens a new local scope in the language definition:
Module, ClassDef, FunctionDef (and Lambda, GeneratorExp, DictComp and SetComp to some extent).
"""
from astroid.nodes.scoped_nodes.mixin import ComprehensionScope, LocalsDictNodeNG
from astroid.nodes.scoped_nodes.scoped_nodes import (
AsyncFunctionDef,
ClassDef,
DictComp,
FunctionDef,
GeneratorExp,
Lambda,
ListComp,
Module,
SetComp,
_is_metaclass,
function_to_method,
get_wrapping_class,
)
from astroid.nodes.scoped_nodes.utils import builtin_lookup
__all__ = (
"AsyncFunctionDef",
"ClassDef",
"ComprehensionScope",
"DictComp",
"FunctionDef",
"GeneratorExp",
"Lambda",
"ListComp",
"LocalsDictNodeNG",
"Module",
"SetComp",
"builtin_lookup",
"function_to_method",
"get_wrapping_class",
"_is_metaclass",
)
|