Skip to content

Commit 502063f

Browse files
author
Malav Shastri
committed
fix formatting
1 parent 269dc08 commit 502063f

File tree

1 file changed

+6
-3
lines changed
  • src/sagemaker/jumpstart/hub

1 file changed

+6
-3
lines changed

src/sagemaker/jumpstart/hub/hub.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def _fetch_hub_bucket_name(self) -> str:
101101
self.hub_name,
102102
)
103103
return None
104+
104105
def _generate_hub_storage_location(self, bucket_name: Optional[str] = None) -> None:
105106
"""Generates an ``S3ObjectLocation`` given a Hub name."""
106107
hub_bucket_name = bucket_name or self._fetch_hub_bucket_name()
@@ -128,9 +129,11 @@ def create(
128129
) -> Dict[str, str]:
129130
"""Creates a hub with the given description"""
130131

131-
s3_storage_config = {
132-
"S3OutputPath": self.hub_storage_location.get_uri()
133-
} if self.hub_storage_location else None
132+
s3_storage_config = (
133+
{"S3OutputPath": self.hub_storage_location.get_uri()}
134+
if self.hub_storage_location
135+
else None
136+
)
134137

135138
return self._sagemaker_session.create_hub(
136139
hub_name=self.hub_name,

0 commit comments

Comments
 (0)