Open hbruch opened 1 month ago
I think this part of the Type docs covers cases like this:
if you wish to use a DagsterType alongside your annotations (to perform more complex validation than the default runtime typechecks), you should include this information in the relevant InputDefinition or OutputDefinition.
There's an example of that here in the Examples section.
Not sure if I misinterpret your answer, @garethbrickman. I'd expect sequence to be inferred from the type hint, as described in this section. Defining an InputDefinition
or OutputDefinition
would rather look as a workaround to me, as I don't want to perform additional checks on the returned result.
What's the issue?
I'd like to at PEP 484 type annotations to my asset:
While this is linted without errors, this results in a
DagsterInvalidDefinitionError
:What did you expect to happen?
I don't expect a
DagsterInvalidDefinitionError
. Istyping.Sequence
not (yet) supported?How to reproduce?
No response
Dagster version
1.8.12
Deployment type
Local
Deployment details
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization. By submitting this issue, you agree to follow Dagster's Code of Conduct.