Charlie Bini
05/27/2022, 4:02 PMconfig_schema
, Map
allows you to define a dict
with an arbitrary number of items, right? Each item will be a String
key and a String
value, so is this the correct way to use it: Map(key_type=String, inner_type=String)
dict
and pass it as **kwargs
to a functionsean
05/27/2022, 7:35 PMMap
should work. You can also just use str
instead of String
.
You will have no problem taking the dict
value, it’s just a Python dict, the Map
is just used for type-checking purposes.Charlie Bini
05/27/2022, 7:36 PMPermissive
, turns out the item value can be a number of typessean
05/27/2022, 8:45 PMPermissive
seems like your best bet then.