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 de361e0 commit 77b37f5Copy full SHA for 77b37f5
src/sagemaker/serializers.py
@@ -67,7 +67,7 @@ def is_sequence_like(obj):
67
return hasattr(obj, "__iter__") and hasattr(obj, "__getitem__")
68
69
def is_mutable_sequence_like(obj):
70
- return is_sequence_like and hasattr(obj, "__setitem__")
+ return is_sequence_like(obj) and hasattr(obj, "__setitem__")
71
72
if is_mutable_sequence_like(data) and len(data) > 0 and is_sequence_like(data[0]):
73
return "\n".join([self._serialize_row(row) for row in data])
0 commit comments