Skip to content

Commit

Permalink
SDK - Compiler - Made compiler compatible with @wraps (#3956)
Browse files Browse the repository at this point in the history
Fixes #3367
  • Loading branch information
Ark-kun authored Jun 12, 2020
1 parent d6920ca commit 374b3b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/kfp/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,6 @@ def _create_workflow(self,
) -> Dict[Text, Any]:
""" Internal implementation of create_workflow."""
params_list = params_list or []
argspec = inspect.getfullargspec(pipeline_func)

# Create the arg list with no default values and call pipeline function.
# Assign type information to the PipelineParam
Expand All @@ -793,7 +792,8 @@ def _create_workflow(self,
raise ValueError('Either specify pipeline params in the pipeline function, or in "params_list", but not both.')

args_list = []
for arg_name in argspec.args:
signature = inspect.signature(pipeline_func)
for arg_name in signature.parameters:
arg_type = None
for input in pipeline_meta.inputs or []:
if arg_name == input.name:
Expand Down

0 comments on commit 374b3b0

Please sign in to comment.