Skip to content

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Oct 16, 2024
1 parent 7135103 commit 715ce31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/cases_generator/tier2_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def oparg(
return True


def write_uop(uop: Uop, emitter: Emitter, stack: Stack, inst: Instruction) -> Stack:
def write_uop(uop: Uop, emitter: Emitter, stack: Stack, inst: Instruction | None) -> Stack:
locals: dict[str, Local] = {}
try:
emitter.out.start_line()
Expand Down Expand Up @@ -198,6 +198,7 @@ def get_instruction_for_uop(instructions: dict[str, Instruction], uop: Uop) -> I
for inst in instructions.values():
if uop in inst.parts:
return inst
return None


SKIPS = ("_EXTENDED_ARG",)
Expand Down

0 comments on commit 715ce31

Please sign in to comment.