Very interesting. Would you be willing to rework your plugin into a PR for mypy, specifically targeted at functions.partial?

On Fri, Apr 17, 2020 at 01:42 Никита Соболев <> wrote:
Hello everyone! 

Recently I was curious about whether it is possible to create a fully typed `functools.partial` version. Because currently only return type is taken into account. 

So, I came up with the mypy plugin to type all the callable parameters during the partial application process and the final call. It works pretty well!


I thought that mypy team might be interested in porting this (or similar) solution into the core. I would also be happy to receive any feedback on the code itself or the solution in general.

Thanks a lot for building mypy, it is awesome!

Nikita Sobolev
Typing-sig mailing list --
To unsubscribe send an email to
--Guido (mobile)