|
pylint #5561 check function calls arguments [resolved]Check if the number of arguments required are equal to number of arguments of the callee
| | priority | important |
|---|
| type | enhancement |
|---|
| appeared in | <not specified> |
|---|
| done in | 0.20.0 |
|---|
| load | 1.000 |
|---|
| load left | 0.000 |
|---|
| closed by | <not specified> |
|---|
Workflow history| from state (5) | to state | comment | date | User |
| validation pending | resolved | | 2010/08/26 10:23 | sthenault |
| done | validation pending |
version published
| 2010/03/24 10:39 | eanclin |
| open | done | | 2010/03/22 12:19 | eanclin |
| validation pending | open |
moved away from published version
| 2009/12/18 13:04 | sthenault |
| open | validation pending |
patch applyed
| 2009/11/25 11:48 | pydavid |
| |
|
Comments
-
2008/12/11 13:54, written by eanclin
| reply to this comment
-
2009/03/11 16:24, written by eanclin
| reply to this comment
-
2009/03/15 03:00, written by anon
| reply to this comment
(add comment)Check also unexpected keyword arguments like in:
def xxx(aaa): """ This function has no parm bbb """ return aaa + 1 print xxx(aaa = 3, bbb = 4)This will / should also handle the case with class instantiation:
class MyClass: """Example""" def __init__(self, param1, param2, param3): """init""" myclass = MyClass(1, 2)I think that this would be a great feature to implement. It seems to me that it's about the last thing left that pychecker can do that pylint can't. This may be stating the obvious, but to be truly useful, this feature would have to check imported functions/methods/class instantiations::
import mymodule
mymodule.myfunc(1, 2)