Skip to content

Commit b5737c8

Browse files
committed
Fix type annotation
1 parent 4d1e295 commit b5737c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/cases_generator/flags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
)
5252

5353

54-
def makes_escaping_api_call(instr: parsing.Node) -> bool:
54+
def makes_escaping_api_call(instr: parsing.InstDef) -> bool:
5555
if "CALL_INTRINSIC" in instr.name:
5656
return True;
5757
tkns = iter(instr.tokens)
@@ -98,7 +98,7 @@ def __post_init__(self) -> None:
9898
self.bitmask = {name: (1 << i) for i, name in enumerate(self.names())}
9999

100100
@staticmethod
101-
def fromInstruction(instr: parsing.Node) -> "InstructionFlags":
101+
def fromInstruction(instr: parsing.InstDef) -> "InstructionFlags":
102102
has_free = (
103103
variable_used(instr, "PyCell_New")
104104
or variable_used(instr, "PyCell_GET")

0 commit comments

Comments
 (0)