Skip to content

Commit 0a47a61

Browse files
committed
lint
1 parent aa276e0 commit 0a47a61

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

onnxscript/ir/passes/_pass_infra_test.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
from __future__ import annotations
55

66
import unittest
7-
from onnxscript.ir.passes import _pass_infra
7+
88
from onnxscript import ir
9+
from onnxscript.ir.passes import _pass_infra
910

1011

1112
class PassBaseTest(unittest.TestCase):
@@ -18,18 +19,13 @@ def in_place(self) -> bool:
1819
@property
1920
def changes_input(self) -> bool:
2021
return False
22+
2123
def call(self, model: ir.Model) -> _pass_infra.PassResult:
2224
# This is a no-op pass
23-
return _pass_infra.PassResult(
24-
model=model,
25-
modified=False
26-
)
25+
return _pass_infra.PassResult(model=model, modified=False)
2726

2827
pass_ = TestPass()
29-
model = ir.Model(
30-
graph=ir.Graph([], [], nodes=[]),
31-
ir_version=10
32-
)
28+
model = ir.Model(graph=ir.Graph([], [], nodes=[]), ir_version=10)
3329
result = pass_(model)
3430
self.assertIsInstance(result, _pass_infra.PassResult)
3531
# pass can take the result of another pass as input

0 commit comments

Comments
 (0)