Skip to content

Commit

Permalink
Use _extract_single_node in brain_re (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Jan 17, 2022
1 parent 307ec52 commit 9363c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astroid/brain/brain_re.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from astroid import context, inference_tip, nodes
from astroid.brain.helpers import register_module_extender
from astroid.builder import extract_node, parse
from astroid.builder import _extract_single_node, parse
from astroid.const import PY37_PLUS, PY39_PLUS
from astroid.manager import AstroidManager

Expand Down Expand Up @@ -77,7 +77,7 @@ def infer_pattern_match(
parent=node.parent,
)
if PY39_PLUS:
func_to_add = extract_node(CLASS_GETITEM_TEMPLATE)
func_to_add = _extract_single_node(CLASS_GETITEM_TEMPLATE)
class_def.locals["__class_getitem__"] = [func_to_add]
return iter([class_def])

Expand Down

0 comments on commit 9363c34

Please sign in to comment.