Jaime Ferrando Huertas
01/24/2024, 2:17 PMKetan (kumare3)
Ketan (kumare3)
Yee
Yee
dict
will trigger the proto struct transformer.Yee
Jaime Ferrando Huertas
01/25/2024, 8:39 AMJaime Ferrando Huertas
01/25/2024, 9:51 AMdict
instead of Dict[int, str]
it still gets casted to str @YeeJaime Ferrando Huertas
01/25/2024, 9:54 AMfrom flytekit import task, workflow
@task
def create_dict() -> dict:
sample_dict = {1: 1.1, 2: 2.2, 3: 3.3}
print(sample_dict.keys())
return sample_dict
@task
def process_dict(input_dict: dict):
print(input_dict.keys())
@workflow
def workflow() -> None:
dict_created = create_dict()
process_dict(input_dict=dict_created)
The second print will still have str keys 😞Jaime Ferrando Huertas
01/29/2024, 1:13 PM