<#3989 [BUG] Error when task output type is of the...
# flytekit
a
#3989 [BUG] Error when task output type is of the form `List[Annotated[StructructuredDataset, kwtypes(...)]]` Issue created by redartera Describe the bug I get a
TypeError: unhashable type: 'collections.OrderedDict'
when there exists a task annotated with the output described in the title. This is very similar to #3011 Expected behavior Should work Additional context to reproduce Script to reproduce, run
python script.py
Copy code
# script.py
from typing import Annotated, List
from flytekit import task, kwtypes

from flytekit.types.structured import StructuredDataset


WineDataset = Annotated[
    StructuredDataset,
    kwtypes(
        alcohol=float,
        malic_acid=float,
        ash=float,
        alcalinity_of_ash=float,
        magnesium=float,
        total_phenols=List[float],
        flavanoids=float,
        nonflavanoid_phenols=float,
        proanthocyanins=float,
        color_intensity=float,
        hue=float,
        od280_od315_of_diluted_wines=float,
        proline=float,
        target=int,
    )
]

@task
def no_op(data: WineDataset) -> List[WineDataset]:
    return [data]
Screenshots No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte