We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_extract_single_node
brain_re
1 parent 307ec52 commit 9363c34Copy full SHA for 9363c34
astroid/brain/brain_re.py
@@ -4,7 +4,7 @@
4
5
from astroid import context, inference_tip, nodes
6
from astroid.brain.helpers import register_module_extender
7
-from astroid.builder import extract_node, parse
+from astroid.builder import _extract_single_node, parse
8
from astroid.const import PY37_PLUS, PY39_PLUS
9
from astroid.manager import AstroidManager
10
@@ -77,7 +77,7 @@ def infer_pattern_match(
77
parent=node.parent,
78
)
79
if PY39_PLUS:
80
- func_to_add = extract_node(CLASS_GETITEM_TEMPLATE)
+ func_to_add = _extract_single_node(CLASS_GETITEM_TEMPLATE)
81
class_def.locals["__class_getitem__"] = [func_to_add]
82
return iter([class_def])
83
0 commit comments