pyflakes/pyflakes — pull request #12 by dim-an (2013-07-07 21:27:29+00:00)
Title: pyflakes checks function calls

Hi,

I propose to add into pyflakes possibility to check function calls. With this change pyflakes will be able to detect:
- when function is passed too many / too few arguments;
- when multiple values are specified for single argument;
- when non-existent keyword argument is specified;
- when keyword-only argument without default value is not specified (Python 3 only).

I tested this code on python standard libraries, some most popular github repositories and on codebase at my work. As far as I can see, it doesn't produce any 'false positive' results.

If this change is accepted, later we can add signatures of built-in functions to detect their incorrect usage.

What do you think about this change?

Thanks.