Hi,
When I want to create a object with dacite.from_dict, lazy annotated fields throw exception.
import strawberry
from dacite import from_dict
application_type = Annotated["Application", strawberry.lazy("api_gateway.products.models")]
@strawberry.type
class Organization:
id: strawberry.ID
title: str
common_name: str
department: str | None
email: str | None
@strawberry.field
async def applications(self, info: "Info") -> list[application_type]:
return []
data = {"id" : "1", "title" : "test"}
obj = from_dict(
data_class=Organization,
data=data
)
"unhashable type: 'StrawberryAnnotation'"
Can we make StrawberryAnnotation hashable ?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too