Skip to content

Commit 86d1ae7

Browse files
committed
fix: formatting
1 parent c6578e7 commit 86d1ae7

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/sagemaker/model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,10 @@ def register(
549549
model_package_group_name = utils.base_name_from_image(
550550
self.image_uri, default_base_name=ModelPackage.__name__
551551
)
552-
if model_package_group_name is not None and model_type is not JumpStartModelType.PROPRIETARY:
552+
if (
553+
model_package_group_name is not None
554+
and model_type is not JumpStartModelType.PROPRIETARY
555+
):
553556
container_def = self.prepare_container_def(accept_eula=accept_eula)
554557
container_def = update_container_with_inference_params(
555558
framework=framework,

tests/unit/test_estimator.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4402,10 +4402,7 @@ def test_register_default_image_without_instance_type_args(sagemaker_session):
44024402
framework = "TENSORFLOW"
44034403
framework_version = "2.9"
44044404
nearest_model_name = "resnet50"
4405-
model_card = {
4406-
'ModelCardStatus': ModelCardStatusEnum.DRAFT,
4407-
'ModelCardContent': '{}'
4408-
}
4405+
model_card = {"ModelCardStatus": ModelCardStatusEnum.DRAFT, "ModelCardContent": "{}"}
44094406
estimator.register(
44104407
content_types=content_types,
44114408
response_types=response_types,
@@ -4458,10 +4455,7 @@ def test_register_inference_image(sagemaker_session):
44584455
framework = "TENSORFLOW"
44594456
framework_version = "2.9"
44604457
nearest_model_name = "resnet50"
4461-
model_card = {
4462-
'ModelCardStatus': ModelCardStatusEnum.DRAFT,
4463-
'ModelCardContent': '{}'
4464-
}
4458+
model_card = {"ModelCardStatus": ModelCardStatusEnum.DRAFT, "ModelCardContent": "{}"}
44654459

44664460
estimator.register(
44674461
content_types=content_types,

0 commit comments

Comments
 (0)