Skip to content

Commit 77c2f6c

Browse files
committed
fix style
1 parent 28638ab commit 77c2f6c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mlir/test/python/python_pass.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,9 @@ def __call__(self, op, pass_):
8888
pm.run(module)
8989

9090
# test signal_pass_failure
91-
class CustomPassThatFails:
92-
def __call__(self, op, pass_):
93-
print("hello from pass that fails")
94-
pass_.signal_failure()
95-
96-
custom_pass_that_fails = CustomPassThatFails()
91+
def custom_pass_that_fails(op, pass_):
92+
print("hello from pass that fails")
93+
pass_.signal_failure()
9794

9895
pm = PassManager("any")
9996
pm.add(custom_pass_that_fails, "CustomPassThatFails")

0 commit comments

Comments
 (0)