I was using pick for a personal project and I had a tuple of items that I wanted to pass to the options parameter of the pick function, but my type checker started throwing errors that I could not pass a tuple to a parameter of type list. This is just a simple fix so that any type that supports len and getitem can be passed.
I was using pick for a personal project and I had a tuple of items that I wanted to pass to the
options
parameter of thepick
function, but my type checker started throwing errors that I could not pass a tuple to a parameter of typelist
. This is just a simple fix so that any type that supportslen
andgetitem
can be passed.