dgilland / pydash

The kitchen sink of Python utility libraries for doing "stuff" in a functional way. Based on the Lo-Dash Javascript library.
http://pydash.readthedocs.io
MIT License
1.28k stars 89 forks source link

Correct function overloading for map_keys #207

Closed Drvanon closed 9 months ago

Drvanon commented 9 months ago

There is a small bug in Chain.map_keys. When the iteratee accepts only one argument, the type of the argument is said to be of type T2, which is the type of the values. However since map_keys well, maps keys, the type here should be T. This commit should fix that.

dgilland commented 9 months ago

This is the intended behavior: https://github.com/dgilland/pydash/issues/208#issuecomment-1735724171