Skip to content

Commit bacc5b6

Browse files
committed
fix: moved verification for CALL_INTRINSIC_2 back to 3.13
1 parent ec09075 commit bacc5b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

executing/_position_node_finder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,9 @@ def node_match(node_type: Union[Type, Tuple[Type, ...]], **kwargs: Any) -> bool:
916916
if inst_match(("LOAD_FAST","LOAD_FAST_BORROW")) and isinstance(node.parent,ast.TypeVar):
917917
return
918918

919+
if inst_match("CALL_INTRINSIC_2",argrepr="INTRINSIC_SET_TYPEPARAM_DEFAULT") and node_match((ast.TypeVar,ast.ParamSpec,ast.TypeVarTuple)):
920+
return
921+
919922
if sys.version_info >= (3, 14):
920923
if inst_match("BINARY_OP",argrepr="[]") and node_match(ast.Subscript):
921924
return
@@ -927,8 +930,6 @@ def node_match(node_type: Union[Type, Tuple[Type, ...]], **kwargs: Any) -> bool:
927930
if inst_match("LOAD_FAST_BORROW_LOAD_FAST_BORROW") and node_match(ast.Name) and node.id in instruction.argval:
928931
return
929932

930-
if inst_match("CALL_INTRINSIC_2",argrepr="INTRINSIC_SET_TYPEPARAM_DEFAULT") and node_match((ast.TypeVar,ast.ParamSpec,ast.TypeVarTuple)):
931-
return
932933

933934
# old verifier
934935

0 commit comments

Comments
 (0)