mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-23 04:12:05 +08:00
first version of too many arguments detection
This commit is contained in:
16
test/static_analysis/arguments.py
Normal file
16
test/static_analysis/arguments.py
Normal 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)
|
||||
Reference in New Issue
Block a user