Skip to content

Commit 8c535d8

Browse files
committed
Remove newlines from Constant __str__
1 parent 36161e8 commit 8c535d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/graph/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def signature(self):
773773
return (self.type, self.data)
774774

775775
def __str__(self):
776-
data_str = str(self.data)
776+
data_str = str(self.data).replace("\n", "")
777777
if len(data_str) > 20:
778778
data_str = data_str[:10].strip() + " ... " + data_str[-10:].strip()
779779

0 commit comments

Comments
 (0)