Skip to content

Commit ba16844

Browse files
test: fix styling and imports
1 parent 4c41ccf commit ba16844

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

sdk/python/kfp/compiler/pipeline_spec_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
import copy
1717
import json
1818
import typing
19-
from typing import Any, DefaultDict, Dict, List, Mapping, Optional, Tuple, Union
19+
from typing import (Any, DefaultDict, Dict, List, Mapping, Optional, Tuple,
20+
Union)
2021
import warnings
2122

2223
from google.protobuf import json_format

sdk/python/kfp/dsl/pipeline_channel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,10 @@ class DictSubvariable(PipelineParameterChannel):
322322
def my_pipeline(config: dict):
323323
# Extract individual keys
324324
component1(param=config['db_host'])
325-
325+
326326
# Extract nested values
327327
component2(host=config['database']['host'])
328-
328+
329329
# Pass sub-dicts
330330
component3(db_config=config['database'])
331331

sdk/python/kfp/dsl/pipeline_channel_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def test_parent_must_be_pipeline_parameter_channel(self):
430430
TypeError,
431431
'parent_channel must be a PipelineParameterChannel'):
432432
pipeline_channel.DictSubvariable(
433-
parent_channel="not_a_channel",
433+
parent_channel='not_a_channel',
434434
key='test_key'
435435
)
436436

0 commit comments

Comments
 (0)