🐛 fix(schemas.py): fix indentation issue in the __str__ method of StreamData class to improve code readability

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-22 11:38:36 -03:00
commit 22072084f8

View file

@ -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):