Skip to content

Commit

Permalink
fix: cast resource labels to dict type (#783)
Browse files Browse the repository at this point in the history
Co-authored-by: sasha-gitg <44654632+sasha-gitg@users.noreply.github.com>
  • Loading branch information
morgandu and sasha-gitg committed Oct 25, 2021
1 parent da03785 commit 255edc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/base.py
Expand Up @@ -586,7 +586,7 @@ def labels(self) -> Dict[str, str]:
Read more about labels at https://goo.gl/xmQnxf
"""
self._assert_gca_resource_is_available()
return self._gca_resource.labels
return dict(self._gca_resource.labels)

@property
def gca_resource(self) -> proto.Message:
Expand Down

0 comments on commit 255edc9

Please sign in to comment.