Skip to content

Commit

Permalink
Address lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gramalingam committed Dec 4, 2024
1 parent 6c2c7ee commit 659be5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxscript/rewriter/_ir_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def visit(node: ir.Node, depth):
if backward:
for inp in node.inputs:
if inp is not None and inp.producer() is not None:
visit(inp.producer(), depth + 1)
visit(inp.producer(), depth + 1) # type: ignore[arg-type]
else:
for out in node.outputs:
for consumer, _ in out.uses():
Expand All @@ -29,7 +29,7 @@ def visit(node: ir.Node, depth):
if isinstance(x, ir.Node):
visit(x, 0)
elif isinstance(x, ir.Value) and x.producer() is not None:
visit(x.producer(), 0)
visit(x.producer(), 0) # type: ignore[arg-type]
if slice:
graph = slice[0].graph
if graph:
Expand Down

0 comments on commit 659be5f

Please sign in to comment.