We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e43b62 commit 4c097a8Copy full SHA for 4c097a8
ads/cli.py
@@ -78,16 +78,12 @@ def serialize(data):
78
Returns:
79
None
80
Prints:
81
- The string representation of each dataclass object, or the string representation of any other type of object.
+ The string representation of each dataclass object.
82
"""
83
if isinstance(data, list):
84
- [print(str(item) if hasattr(item, "__str__") else repr(item)) for item in data]
+ [print(str(item)) for item in data]
85
else:
86
- print(
87
- str(data)
88
- if (is_dataclass(data) and hasattr(data, "__str__"))
89
- else repr(data)
90
- )
+ print(str(data))
91
92
93
def cli():
0 commit comments