Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add type checking plugin support for functions #3299
The plugins allow implementing special-case logic for
Include plugins for
Some design considerations:
Work towards #2337.
This feels like too much of a hack. I also wonder what would happen with various error cases.
The API for a plugin seems to take the formal argument types (subject to @gvanrossum's commentary), and also the actual arguments, but not the formal-to-actual mapping? That seems like it'd make using the actual arguments a little rough, if people were doing any kind of passing arguments you don't expect by name in an order you don't expect. I feel like it should get all the necessary information, in some kind of normalized form.
(Outside this diff, we should refactor to have an easier-to-understand package that represents a mapping of actual to formal args)
referenced this pull request
May 13, 2017
May 25, 2017
We forgot to check this against our internal codebases. There are a few errors.