Skip to content

Commit cbd662f

Browse files
committed
Apply rule RUF040
1 parent ffd7a5a commit cbd662f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/tensor/rewriting/test_blockwise.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ def test_blockwise_alloc():
107107
y = tensor("y", shape=())
108108
out = vector_add(alloc(x, 3, 1, 5), alloc(y, 7, 5))
109109
expected_out = alloc(vector_add(alloc(x, 5), alloc(y, 5)), 3, 7, 5)
110-
assert equal([rewrite(out)], [expected_out]), (
111-
None
112-
) # pytensor.dprint([expected_out, rewrite(out)], print_type=True)
110+
# pytensor.dprint([expected_out, rewrite(out)], print_type=True)
111+
assert equal([rewrite(out)], [expected_out])
113112

114113
x = tensor("x", shape=(5,))
115114
y = tensor("y", shape=())

0 commit comments

Comments
 (0)