I guess i'm missing something - How do I define a...
# announcements
s
I guess i'm missing something - How do I define a
dict
type within a solid configuration? I'm not able to understand how to define a general dict from the error : Passing
Dict
sets an error
DagsterInvalidDefintionError: Attempted to pass <dagster.core.types.python_dict.DagsterDictApi object> to a Field that expects a valid dagster type usable in config (e.g. Dict, Int, String et al).
The
Permissive
is too strict - I just need a general
dict
type Tried
Shape({})
> but still problematic
Copy code
1. A Python primitive type that resolve to dagster config
   types: int, float, bool, str.

2. A dagster config type: Int, Float, Bool, String, StringSource, Path, Any,
   Array, Noneable, Selector, Shape, Permissive, etc.

3. A bare python dictionary, which is wrapped in Shape. Any
   values in the dictionary get resolved by the same rules, recursively.

4. A bare python list of length one which itself is config type.
   Becomes Array with list element as an argument.
s
"The Permissive is too strict'
Can you elaborate?
Permissive allows one to pass in any dictionary
s
OK, When I gave
Permissive
I got an error, then I gave a
Permissive({key:val})
- too strict . finally I just need to
Permissive()
which worked - sorry for the hassle.
👍 3