Skip to content

Commit 6175087

Browse files
committed
linter
1 parent 49ae11b commit 6175087

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/sagemaker/jumpstart/cache.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@ def _retrieval_function(
339339
formatted_content=model_specs
340340
)
341341
if data_type == HubDataType.MODEL:
342-
hub_name, hub_region, model_name, model_version = utils.extract_info_from_hub_content_arn(
342+
hub_name, region, model_name, model_version = utils.extract_info_from_hub_content_arn(
343343
id_info
344344
)
345-
hub = CuratedHub(hub_name=hub_name, region=hub_region)
345+
hub = CuratedHub(hub_name=hub_name, region=region)
346346
hub_content = hub.describe_model(model_name=model_name, model_version=model_version)
347347
utils.emit_logs_based_on_model_specs(
348348
hub_content.content_document,
@@ -354,8 +354,8 @@ def _retrieval_function(
354354
formatted_content=model_specs
355355
)
356356
if data_type == HubDataType.HUB:
357-
hub_name, hub_region, _, _ = utils.extract_info_from_hub_content_arn(id_info)
358-
hub = CuratedHub(hub_name=hub_name, region=hub_region)
357+
hub_name, region, _, _ = utils.extract_info_from_hub_content_arn(id_info)
358+
hub = CuratedHub(hub_name=hub_name, region=region)
359359
hub_info = hub.describe()
360360
return JumpStartCachedContentValue(formatted_content=hub_info)
361361
raise ValueError(
@@ -465,10 +465,10 @@ def get_specs(self, model_id: str, semantic_version_str: str) -> JumpStartModelS
465465
)
466466
)
467467
return specs.formatted_content
468-
468+
469469
def get_hub_model(self, hub_model_arn: str) -> JumpStartModelSpecs:
470470
"""Return JumpStart-compatible specs for a given Hub model
471-
471+
472472
Args:
473473
hub_model_arn (str): Arn for the Hub model to get specs for
474474
"""
@@ -477,14 +477,14 @@ def get_hub_model(self, hub_model_arn: str) -> JumpStartModelSpecs:
477477
JumpStartCachedContentKey(HubDataType.MODEL, hub_model_arn)
478478
)
479479
return details.formatted_content
480-
480+
481481
def get_hub(self, hub_arn: str) -> Dict[str, Any]:
482482
"""Return descriptive info for a given Hub
483-
483+
484484
Args:
485485
hub_arn (str): Arn for the Hub to get info for
486486
"""
487-
487+
488488
details, _ = self._content_cache.get(JumpStartCachedContentKey(HubDataType.HUB, hub_arn))
489489
return details.formatted_content
490490

0 commit comments

Comments
 (0)