`dict` inputs are Iterable, but are not the sort of sequence type that
we were trying to catch as ambiguous (in terms of data shape).
Change-Id: I71b79c7389197a0750d21874bf6f7cb3fef7721b
dtype = datamodel.NDArray
data = [datamodel.ndarray(self._result)]
elif isinstance(self._result, collections.abc.Iterable):
- if not isinstance(self._result, (str, bytes)):
+ if not isinstance(self._result, (str, bytes, dict)):
raise exceptions.ValueError(
'Expecting width 1 but "function" produced iterable type {}.'.format(type(self._result)))
else: