1
0
forked from VimPlug/jedi

first version of too many arguments detection

This commit is contained in:
Dave Halter
2014-05-21 12:30:51 +02:00
parent a252d825f2
commit 4ecc150d85
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
def simple(a):
return a
simple(1)
simple()
#! 10 type-error-too-many-params
simple(1, 2)
def nested(*args):
return simple(*args)
nested(1)
nested()
#! 10 type-error-too-many-params
simple(1, 2, 3)