Skip to content

Commit 0a97e02

Browse files
committed
Add BatchRow.__str__ that shows cache
1 parent 0350feb commit 0a97e02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client_code/auto_batch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ def __repr__(self):
208208
if self._row is None:
209209
return f"BatchRow.from_batched_add({repr(self._cache)})"
210210
return f"BatchRow({repr(self._row)})"
211+
212+
@if_not_deleted
213+
def __str__(self):
214+
return f"<auto_batch.tables.BatchRow: {self._cache}>"
211215

212216
@if_not_deleted
213217
def __iter__(self):

0 commit comments

Comments
 (0)