Skip to content

Commit e8ca206

Browse files
authored
fix: adding string representation to StoredObject (#582)
Adds string representations to StoredObject --------- Signed-off-by: Gregor Ambrozic <ambrozic@users.noreply.github.com> Signed-off-by: Cody Fincher <204685+cofin@users.noreply.github.com>
1 parent d26a68b commit e8ca206

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

advanced_alchemy/types/file_object/data_type.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ def __init__(
7070
self.multiple = multiple
7171
self._raw_backend = backend
7272

73+
def __repr__(self) -> str:
74+
"""Return a string representation of the StoredObject."""
75+
if self.multiple:
76+
return f"StoredObject(backend='{self.backend.key}', multiple=True)"
77+
return f"StoredObject(backend='{self.backend.key}')"
78+
7379
def process_bind_param(
7480
self,
7581
value: "Optional[FileObjectOrList]",

0 commit comments

Comments
 (0)