https://dagster.io/ logo
i

Ilya Tyutin

05/03/2020, 8:07 PM
Another one - I was playing with
dagster.*input_hydration_config*
(what a name, btw 😃 ). I wanted to build an object from a dictionary. The documentation states:
config_cls (Any) – The type of the config data expected by the decorated function. Users should provide one of the built-in types, or a composite constructed using 
Selector()
 or 
Permissive()
.
Dict is one of the listed built-in types yet it's not a subclass of ConfigType thus it fails. So it's kinda confusing behaviour.
m

max

05/03/2020, 10:17 PM
apologies, you're hitting all the rough edges in our docs. you should be able to pass a dict literal, or construct what you want using
Shape
👍 1