Skip to content

Commit 2bdee17

Browse files
committed
Add representation string for the Result object
1 parent a151715 commit 2bdee17

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/violet-buckets-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@e2b/code-interpreter-python": patch
3+
---
4+
5+
Add representation string for the Result object

python/e2b_code_interpreter/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ def __str__(self) -> Optional[str]:
124124
"""
125125
return self.text
126126

127+
def __repr__(self) -> str:
128+
return f"Result({self.text})"
129+
127130
def _repr_html_(self) -> Optional[str]:
128131
"""
129132
Returns the HTML representation of the data.

0 commit comments

Comments
 (0)