Shaounak Nasikkar
03/21/2022, 10:02 PM@op(
config_schema={"extn": str},
ins={
"connection_dict": In(dagster_type=Dict, description="Connection Dictionary"),
"ready": In(dagster_type=List[Any], description="Ready", default_value=[]),
},
)
jamie
03/22/2022, 1:41 PMDict
you have to state the type for the keys and values as well. For example Dict[Any, Any]
or Dict[String, Int]
Can you point me to the page in the docs you were looking at so I can add some clarification?Egor -
03/23/2022, 11:45 PMins={'spec': In(Dict)},
https://docs.dagster.io/_apidocs/types#dagster.DictShaounak Nasikkar
03/24/2022, 6:08 PMfrom dagster import op, InputDefinition, Dict, List, Any
@op(
ins={
"src_pd_df": In(Any, description="Source Pandas Dataframe"),
"tgt_pd_df": In(Any, description="Target Pandas Dataframe"),
}
)
I was using "Any" from typing module before. I'm not using it anymore. As you see, I'm using it from dagster.Egor -
03/24/2022, 6:10 PMfrom dagster import Any
Shaounak Nasikkar
03/24/2022, 6:12 PMfrom pandas import DataFrame as pandas_dataframe
@op(
ins={
"src_pd_df": In(pandas_dataframe, description="Source Pandas Dataframe"),
"tgt_pd_df": In(pandas_dataframe, description="Target Pandas Dataframe"),
}
)