Skip to content

Commit 9363c34

Browse files
authored
Use _extract_single_node in brain_re (#1359)
1 parent 307ec52 commit 9363c34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroid/brain/brain_re.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from astroid import context, inference_tip, nodes
66
from astroid.brain.helpers import register_module_extender
7-
from astroid.builder import extract_node, parse
7+
from astroid.builder import _extract_single_node, parse
88
from astroid.const import PY37_PLUS, PY39_PLUS
99
from astroid.manager import AstroidManager
1010

@@ -77,7 +77,7 @@ def infer_pattern_match(
7777
parent=node.parent,
7878
)
7979
if PY39_PLUS:
80-
func_to_add = extract_node(CLASS_GETITEM_TEMPLATE)
80+
func_to_add = _extract_single_node(CLASS_GETITEM_TEMPLATE)
8181
class_def.locals["__class_getitem__"] = [func_to_add]
8282
return iter([class_def])
8383

0 commit comments

Comments
 (0)