Skip to content

Commit 2eb12a3

Browse files
Updating BytesIO to bytes
1 parent 39763e9 commit 2eb12a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ads/model/service/oci_datascience_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def update_custom_metadata_artifact(
878878
@check_for_model_id(
879879
msg="Model needs to be saved to the Model Catalog before fetching custom metadata artifact corresponding to that model"
880880
)
881-
def get_custom_metadata_artifact(self, metadata_key_name: str) -> BytesIO:
881+
def get_custom_metadata_artifact(self, metadata_key_name: str) -> bytes:
882882
"""Downloads model custom metadata artifact content for specified model metadata key.
883883
884884
Parameters
@@ -887,7 +887,7 @@ def get_custom_metadata_artifact(self, metadata_key_name: str) -> BytesIO:
887887
The name of the model metadatum in the metadata.
888888
Returns
889889
-------
890-
BytesIO
890+
bytes
891891
custom metadata artifact content
892892
893893
"""
@@ -902,7 +902,7 @@ def get_custom_metadata_artifact(self, metadata_key_name: str) -> BytesIO:
902902
@check_for_model_id(
903903
msg="Model needs to be saved to the Model Catalog before fetching defined metadata artifact corresponding to that model"
904904
)
905-
def get_defined_metadata_artifact(self, metadata_key_name: str) -> BytesIO:
905+
def get_defined_metadata_artifact(self, metadata_key_name: str) -> bytes:
906906
"""Downloads model defined metadata artifact content for specified model metadata key.
907907
908908
Parameters
@@ -911,7 +911,7 @@ def get_defined_metadata_artifact(self, metadata_key_name: str) -> BytesIO:
911911
The name of the model metadatum in the metadata.
912912
Returns
913913
-------
914-
BytesIO
914+
bytes
915915
Defined metadata artifact content
916916
917917
"""

0 commit comments

Comments
 (0)