mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-02 18:23:23 +08:00
nested functions with *args should only raise an error if there's well defined input.
This commit is contained in:
@@ -2,9 +2,14 @@
|
||||
def simple(a):
|
||||
return a
|
||||
|
||||
|
||||
def nested(*args):
|
||||
return simple(*args)
|
||||
|
||||
nested(1)
|
||||
#! 6 type-error-too-few-arguments
|
||||
nested()
|
||||
|
||||
|
||||
def nested_no_call_to_function(*args):
|
||||
return simple(1, *args)
|
||||
|
||||
Reference in New Issue
Block a user