Skip to content

Commit

Permalink
Fix type declaration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed Jan 30, 2025
1 parent 4e4946d commit 3369849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tools/cases_generator/generators_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def deopt_if(

exit_if = deopt_if

def goto_error(self, offset: int, label: str, storage: Storage) -> None:
def goto_error(self, offset: int, label: str, storage: Storage) -> str:
if offset > 0:
return f"goto pop_{offset}_{label};"
if offset < 0:
Expand Down
2 changes: 1 addition & 1 deletion Tools/cases_generator/tier2_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, out: CWriter):
super().__init__(out)
self._replacers["oparg"] = self.oparg

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

0 comments on commit 3369849

Please sign in to comment.