Skip to content

Commit 8ad1774

Browse files
Fix lint
1 parent 776e109 commit 8ad1774

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tools/jit/_optimizers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,15 @@ def _small_const_2(self, inst: Instruction) -> tuple[str, Instruction | None]:
555555
def _small_consts_match(self, inst1: Instruction, inst2: Instruction) -> bool:
556556
raise NotImplementedError()
557557

558-
def _validate(self):
558+
def _validate(self) -> None:
559559
for block in self._blocks():
560560
if not block.instructions:
561561
continue
562562
for inst in block.instructions:
563563
if self.frame_pointers:
564-
assert self._frame_pointer_modify.match(inst.text) is None, "Frame pointer should not be modified"
564+
assert (
565+
self._frame_pointer_modify.match(inst.text) is None
566+
), "Frame pointer should not be modified"
565567

566568
def run(self) -> None:
567569
"""Run this optimizer."""

0 commit comments

Comments
 (0)