Paul Wyatt
02/10/2021, 6:37 PMdagster.core.errors.DagsterInvalidDefinitionError: Invalid type: dagster_type must be DagsterType, a python scalar, or a python type that has been marked usable as a dagster type via @usable_dagster_type or make_python_type_usable_as_dagster_type: got typing.NoReturn
on something that was previously working.
Is there a dagster typed equivalent of NoReturn or should I mark NoReturn as usable?alex
02/10/2021, 6:39 PMoutput_defs=[]
Paul Wyatt
02/10/2021, 6:43 PM@pipeline(
preset_defs=training_presets, mode_defs=DEFAULT_MODES
)
def message_sentiment_analysis_cardiff_train() -> NoReturn:
"""Test pipeline for modularization"""
y_df = orc.initialize_learning_task()
...
alex
02/10/2021, 7:17 PMNone
- which I believe is what it should be since NoReturn
is for functions that never return ie always raise exceptions. Python functions without an explicit return
implicitly return None
Paul Wyatt
02/10/2021, 7:34 PM