Replies: 2 comments 4 replies
-
Hi @Kilo59, As of Dagster 0.11.0, arguments to solids (and return values) can be annotated using any valid type annotation. E.g. you can do:
Is that what you're looking for? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello,
And it works ? No ? Dagster fails if returned type is not Pydantic type. What would interest me is to propagate Pydantic failure to log without. Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm brand new to Dagster so apologies if this has been answered and I didn't see it.
But are there plans to support native python types and compound types in the type system, in the model of
FastAPI/pydantic
?https://fastapi.tiangolo.com/features/#just-modern-python
https://pydantic-docs.helpmanual.io/
I actually initially ran into this project a few months ago and believe it or not the thing that prevented me from evaluating it more seriously at the time was seeing things like this...
or
Whereas in pydantic it's as simple as adding a compound type hint.
I realize there's a lot of metadata being included there as well.
Similar to a pydantic
Field
I'm not asking for anyone to sell me on dagster (I've come around).
But If this is something that seems feasible, I'd like to help.
Perhaps we could even shift some of the typing logic to
pydantic
?https://pydantic-docs.helpmanual.io/usage/validation_decorator/
Maybe a first step would just be to make the UI understand and display field data from a pydantic model.
Beta Was this translation helpful? Give feedback.
All reactions