🐛 fix(schemas.py): fix indentation issue in the __str__ method of StreamData class to improve code readability
This commit is contained in:
parent
44ce4eac5c
commit
22072084f8
1 changed files with 3 additions and 1 deletions
|
|
@ -115,7 +115,9 @@ class StreamData(BaseModel):
|
|||
data: dict
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"event: {self.event}\ndata: {orjson_dumps(self.data)}\n\n"
|
||||
return (
|
||||
f"event: {self.event}\ndata: {orjson_dumps(self.data, indent_2=False)}\n\n"
|
||||
)
|
||||
|
||||
|
||||
class CustomComponentCode(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue