Skip to content

Commit 3369849

Browse files
committed
Fix type declaration errors
1 parent 4e4946d commit 3369849

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tools/cases_generator/generators_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def deopt_if(
164164

165165
exit_if = deopt_if
166166

167-
def goto_error(self, offset: int, label: str, storage: Storage) -> None:
167+
def goto_error(self, offset: int, label: str, storage: Storage) -> str:
168168
if offset > 0:
169169
return f"goto pop_{offset}_{label};"
170170
if offset < 0:

Tools/cases_generator/tier2_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(self, out: CWriter):
6969
super().__init__(out)
7070
self._replacers["oparg"] = self.oparg
7171

72-
def goto_error(self, offset: int, label: str, storage: Storage) -> None:
72+
def goto_error(self, offset: int, label: str, storage: Storage) -> str:
7373
# To do: Add jump targets for popping values.
7474
if offset != 0:
7575
storage.copy().flush(self.out)

0 commit comments

Comments
 (0)