Skip to content

Commit f97fdba

Browse files
committed
linting
1 parent 33a547d commit f97fdba

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/sagemaker/session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,9 +3299,9 @@ def _map_training_config(
32993299
training_job_definition["EnableNetworkIsolation"] = enable_network_isolation
33003300

33013301
if encrypt_inter_container_traffic:
3302-
training_job_definition["EnableInterContainerTrafficEncryption"] = (
3303-
encrypt_inter_container_traffic
3304-
)
3302+
training_job_definition[
3303+
"EnableInterContainerTrafficEncryption"
3304+
] = encrypt_inter_container_traffic
33053305

33063306
if use_spot_instances:
33073307
# use_spot_instances may be a Pipeline ParameterBoolean object

tests/unit/test_session.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,9 +2482,9 @@ def boto_session_complete():
24822482
boto_mock.client("logs").describe_log_streams.return_value = DEFAULT_LOG_STREAMS
24832483
boto_mock.client("logs").get_log_events.side_effect = DEFAULT_LOG_EVENTS
24842484
boto_mock.client("sagemaker").describe_training_job.return_value = COMPLETED_DESCRIBE_JOB_RESULT
2485-
boto_mock.client("sagemaker").describe_transform_job.return_value = (
2486-
COMPLETED_DESCRIBE_TRANSFORM_JOB_RESULT
2487-
)
2485+
boto_mock.client(
2486+
"sagemaker"
2487+
).describe_transform_job.return_value = COMPLETED_DESCRIBE_TRANSFORM_JOB_RESULT
24882488
return boto_mock
24892489

24902490

@@ -2504,9 +2504,9 @@ def boto_session_stopped():
25042504
boto_mock.client("logs").describe_log_streams.return_value = DEFAULT_LOG_STREAMS
25052505
boto_mock.client("logs").get_log_events.side_effect = DEFAULT_LOG_EVENTS
25062506
boto_mock.client("sagemaker").describe_training_job.return_value = STOPPED_DESCRIBE_JOB_RESULT
2507-
boto_mock.client("sagemaker").describe_transform_job.return_value = (
2508-
STOPPED_DESCRIBE_TRANSFORM_JOB_RESULT
2509-
)
2507+
boto_mock.client(
2508+
"sagemaker"
2509+
).describe_transform_job.return_value = STOPPED_DESCRIBE_TRANSFORM_JOB_RESULT
25102510
return boto_mock
25112511

25122512

0 commit comments

Comments
 (0)