Skip to content

Commit 168eacd

Browse files
author
Balaji Veeramani
committed
Address review comments
1 parent bf1dd1c commit 168eacd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sagemaker/deserializers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,19 +190,19 @@ def deserialize(self, data, content_type):
190190

191191

192192
class JSONDeserializer(BaseDeserializer):
193-
"""Deserialize data from an inference endpoint into a Python dictionary."""
193+
"""Deserialize JSON data from an inference endpoint into a Python object."""
194194

195195
ACCEPT = "application/json"
196196

197197
def deserialize(self, data, content_type):
198-
"""Deserialize data from an inference endpoint into a Python dictionary.
198+
"""Deserialize JSON data from an inference endpoint into a Python object.
199199
200200
Args:
201201
data (botocore.response.StreamingBody): Data to be deserialized.
202202
content_type (str): The MIME type of the data.
203203
204204
Returns:
205-
dict: The data deserialized into a Python dictionary.
205+
object: The JSON-formatted data deserialized into a Python object.
206206
"""
207207
try:
208208
return json.load(codecs.getreader("utf-8")(data))

0 commit comments

Comments
 (0)