Skip to content

Commit

Permalink
SDK/Components - Allow dict type spec (kubeflow#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and neuromage committed Dec 13, 2018
1 parent 8b970cd commit 7421a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp/components/_structures.py
Expand Up @@ -68,7 +68,7 @@ def from_struct(cls, struct:Union[Tuple[str, Mapping],Mapping[str,Mapping],str])

if 'type' in spec_dict:
port_spec.type = spec_dict.pop('type')
check_instance_type(port_spec.type, [str, list]) #TODO: Check format further
check_instance_type(port_spec.type, [str, list, dict]) #TODO: Check format further

if 'description' in spec_dict:
port_spec.description = str(spec_dict.pop('description'))
Expand Down

0 comments on commit 7421a0b

Please sign in to comment.