Skip to content

Commit

Permalink
SDK/Components - Allow dict type spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun committed Dec 6, 2018
1 parent 87ab9ca commit 70fc27e
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 70fc27e

Please sign in to comment.