Skip to content

Commit

Permalink
SDK/Components - Allow dict type spec (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Dec 8, 2018
1 parent 9eee2bb commit fa1886c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp/components/_structures.py
Original file line number Diff line number Diff line change
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 fa1886c

Please sign in to comment.