https://dagster.io/ logo
#ask-community
Title
# ask-community
j

jonvet

07/14/2022, 11:36 AM
is there a way to declare the type of a config parameters in the
config_schema
part of the
@op
decorator as
Union[int, float]
? I’m getting an error.. after some google I found that this could work, however this seems to be for op inputs, not op config values
Copy code
PythonObjectDagsterType(python_type=(int, float))
y

yuhan

07/14/2022, 8:41 PM
j

jonvet

07/21/2022, 8:34 AM
this is only for choosing between a fixed set of options right? what I would like is enable the user to enter 0.5, or 1.0 or 1 or 234234 etc. The way I got it work now is to declare this a string field and then parse the provided value into float or int inside the op
2 Views