Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Volkov <alexey.volkov@ark-kun.com>
  • Loading branch information
munagekar and Ark-kun committed Sep 19, 2020
1 parent f6a9838 commit 0f9c42c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions sdk/python/kfp/components/_python_op.py
Expand Up @@ -259,7 +259,7 @@ def _capture_function_code_using_source_copy(func) -> str:
return func_code


def _extract_component_interface(func:Callable) -> ComponentSpec:
def _extract_component_interface(func: Callable) -> ComponentSpec:
single_output_name_const = 'Output'

signature = inspect.signature(func)
Expand All @@ -268,7 +268,6 @@ def _extract_component_interface(func:Callable) -> ComponentSpec:
parsed_docstring = docstring_parser.parse(inspect.getdoc(func))
doc_dict = {p.arg_name: p.description for p in parsed_docstring.params}


inputs = []
outputs = []

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kfp/components_tests/test_python_op.py
Expand Up @@ -470,7 +470,7 @@ def pipeline(
"""

component_spec = comp._python_op._func_to_component_spec(pipeline)
self.assertEqual(component_spec.description,'Pipeline to Demonstrate Usage of Secret')
self.assertEqual(component_spec.description, 'Pipeline to Demonstrate Usage of Secret')
self.assertEqual(component_spec.inputs[0].description, 'Name of the variable inside the Pod')
self.assertEqual(component_spec.inputs[1].description, 'Name of the Secret in the namespace')
self.assertIsNone(component_spec.inputs[2].description)
Expand Down

0 comments on commit 0f9c42c

Please sign in to comment.