mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-05 01:58:47 +08:00
add a new static_analysis file to test star arguments separately
This commit is contained in:
1 parent
11e867d2c1
commit
a695166585
3 files changed
+12
-6
No files matched your search
@@ -13,12 +13,6 @@ simple()
|
||||
simple(1, 2)
|
||||
|
||||
|
||||
def nested(*args):
|
||||
return simple(*args)
|
||||
|
||||
nested(1)
|
||||
#! 6 type-error-too-few-arguments
|
||||
nested()
|
||||
#! 10 type-error-too-many-arguments
|
||||
simple(1, 2, 3)
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
def simple(a):
|
||||
return a
|
||||
|
||||
def nested(*args):
|
||||
return simple(*args)
|
||||
|
||||
nested(1)
|
||||
#! 6 type-error-too-few-arguments
|
||||
nested()
|
||||
Reference in new issue
Block a user