acoustic-carpenter-78188
09/01/2023, 8:52 PMTypeError: 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
# 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/flyteacoustic-carpenter-78188
09/01/2023, 8:52 PM