mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 07:14:48 +08:00
first version of too few params detection
This commit is contained in:
@@ -2,15 +2,18 @@ def simple(a):
|
||||
return a
|
||||
|
||||
simple(1)
|
||||
#! 6 type-error-too-few-arguments
|
||||
simple()
|
||||
#! 10 type-error-too-many-params
|
||||
#! 10 type-error-too-many-arguments
|
||||
simple(1, 2)
|
||||
|
||||
|
||||
def nested(*args):
|
||||
# TODO: shoult not be her but in line 17
|
||||
#! 13 type-error-too-few-arguments
|
||||
return simple(*args)
|
||||
|
||||
nested(1)
|
||||
nested()
|
||||
#! 10 type-error-too-many-params
|
||||
#! 10 type-error-too-many-arguments
|
||||
simple(1, 2, 3)
|
||||
|
||||
Reference in New Issue
Block a user