worried-airplane-87065
08/05/2025, 11:20 PMjolly-florist-66728
08/05/2025, 11:20 PMjolly-florist-66728
08/05/2025, 11:20 PMDict<https://github.com/flyteorg/flytekit/blob/master/tests/flytekit/unit/cli/pyflyte/default_arguments/map_wf.py|str, int]
) as outputs for tasks and workflows. This is confirmed by both documentation and test cases, such as tasks returning Dict[str, int]
and workflows using them as outputs, which work as expected in Flyte v1.14+ and are covered in Flyte's official examples and tests ([map_wf.py>, test_type_engine_binary_idl.py).
However, note that untyped dictionaries (dict
or Dict
without key/value types) are handled differently and may be serialized as msgpack or protobuf struct, but typed dictionaries like Dict<https://github.com/flyteorg/flyte/blob/master/docs/user_guide/data_types_and_io/pydantic_basemodel.md|str, int]
are natively supported and maintain their types across task boundaries ([pydantic_basemodel.md>). Would you like more detail or code examples?
Sources:
- test_type_engine_binary_idl.py
- pydantic_basemodel.md
- map_wf.py 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.