Skip to content

Commit 8cb2a3b

Browse files
chore: rebuild project due to codegen change (#429)
1 parent 062a74b commit 8cb2a3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/orb/_utils/_transform.py

+5
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,11 @@ async def _async_transform_recursive(
311311
# Iterable[T]
312312
or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str))
313313
):
314+
# dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually
315+
# intended as an iterable, so we don't transform it.
316+
if isinstance(data, dict):
317+
return cast(object, data)
318+
314319
inner_type = extract_type_arg(stripped_type, 0)
315320
return [await _async_transform_recursive(d, annotation=annotation, inner_type=inner_type) for d in data]
316321

0 commit comments

Comments
 (0)