Skip to content

Commit 9ff465a

Browse files
committed
🎞️ eq methode
1 parent dee4ce7 commit 9ff465a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

codeboxapi/schema.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ def __str__(self):
2323
def __repr__(self):
2424
return f"Status({self.status})"
2525

26+
def __eq__(self, other):
27+
return self.__str__() == other.__str__()
28+
2629

2730
class CodeBoxOutput(BaseModel):
2831
"""
@@ -38,6 +41,9 @@ def __str__(self):
3841
def __repr__(self):
3942
return f"{self.type}({self.content})"
4043

44+
def __eq__(self, other):
45+
return self.__str__() == other.__str__()
46+
4147

4248
class CodeBoxFile(BaseModel):
4349
"""

0 commit comments

Comments
 (0)