As announced in #52 this pull request adds type hints. It changes how certain functions have to be used, so it requires an increment of the major version, according to SemVer.
By adding type hints I made the existing complexity of pick explicit. I managed to simplify things by two changes:
Always return a list of picks, except when a custom handler is used.
Use a default options_map_func to get rid of a default type.
I adapted the tests and examples. I make use of my fork of pick in another project, mtv-cli. There it helped me to get rid of some type warnings, but it is not yet extensive use or battle tested or something.
As announced in #52 this pull request adds type hints. It changes how certain functions have to be used, so it requires an increment of the major version, according to SemVer.
By adding type hints I made the existing complexity of
pick
explicit. I managed to simplify things by two changes:options_map_func
to get rid of a default type.I adapted the tests and examples. I make use of my fork of
pick
in another project, mtv-cli. There it helped me to get rid of some type warnings, but it is not yet extensive use or battle tested or something.