mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 04:52:07 +00:00
omg!: fix obbject repr
This commit is contained in:
@@ -59,7 +59,7 @@ class OBBject(Tagged, Generic[T]):
|
||||
def __repr__(self) -> str:
|
||||
"""Human readable representation of the object."""
|
||||
items = [
|
||||
f"{k}: {v}"[:83] + "..." if len(f"{k}: {v}") > 83 else ""
|
||||
f"{k}: {v}"[:83] + ("..." if len(f"{k}: {v}") > 83 else "")
|
||||
for k, v in self.model_dump().items()
|
||||
]
|
||||
return f"{self.__class__.__name__}\n\n" + "\n".join(items)
|
||||
|
||||
Reference in New Issue
Block a user