Skip to content

Commit c61eeb0

Browse files
committed
Fix typo in __setitem__ error message
1 parent 5b77cfb commit c61eeb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/tensor/variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def is_empty_array(val):
598598

599599
def __setitem__(self, key, value):
600600
raise TypeError(
601-
"TensorVariable does not support item assignment. Use the output of `set` or `add` instead."
601+
"TensorVariable does not support item assignment. Use the output of `x[idx].set` or `x[idx].inc` instead."
602602
)
603603

604604
def take(self, indices, axis=None, mode="raise"):

0 commit comments

Comments
 (0)