https://flyte.org logo
#ask-the-community
Title
# ask-the-community
l

Laura Lin

10/17/2022, 6:04 PM
Hi, using flyte again after a long break. What is the current equivalent of
from flytekit.sdk.types import Types
the
Types.Generic
? This used to be the type for arbitrary dict/json objects but it doesn't seem to be here anymore?
nevermind, it seems like its just native
dict
support now
y

Yee

10/17/2022, 6:57 PM
so native dictionaries do work, if the generic is what you want yeah.
but flytekit also supports
typing.Dict[str, T]
if you want instead your output to be interpreted as a dictionary in Flyte.
and for bundling of structs we typically use dataclass_json internally
77 Views