1) Add quit feature. Pressing Q quits the menu and returns (None, None). README is edited to include this feature.
(I tried allowing the user to choose their own quit keys by passing a param to pick, but that part got some bugs I couldn't fix. So Q is the only accepted key for now.)
2) Improve type hinting. Now pick takes a Sequence of arbitrary type and returns the same type.
1) Add quit feature. Pressing Q quits the menu and returns
(None, None)
. README is edited to include this feature. (I tried allowing the user to choose their own quit keys by passing a param topick
, but that part got some bugs I couldn't fix. So Q is the only accepted key for now.)2) Improve type hinting. Now
pick
takes aSequence
of arbitrary type and returns the same type.3) Add support for negative
default_index
.