Charlie Bini05/27/2022, 4:02 PM
allows you to define a
with an arbitrary number of items, right? Each item will be a
key and a
value, so is this the correct way to use it:
and pass it as
to a function
sean05/27/2022, 7:35 PM
should work. You can also just use
. You will have no problem taking the
value, it’s just a Python dict, the
is just used for type-checking purposes.
Charlie Bini05/27/2022, 7:36 PM
, turns out the item value can be a number of types
sean05/27/2022, 8:45 PM
seems like your best bet then.