Open sryza opened 3 years ago
@sryza - this may also be handy in having a union of possible resources for an asset. This came up recently for me in:
@asset
def asset_example(database: Union[SnowflakeResource, DuckDBResource]):
pass
dagster._core.errors.DagsterInvalidDefinitionError: Problem using type 'typing.Union[dagster_snowflake.resources.SnowflakeResource, dagster_duckdb.resource.DuckDBResource]' from type annotation for argument 'database', correct the issue or explicitly set the dagster_type via In().
This fails:
With this error: