mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
if there's a func listener, stop the execution of a function. This solves the issue of nested *args that were reported as having too many params in static analysis.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# -----------------
|
||||
# *args
|
||||
# -----------------
|
||||
|
||||
|
||||
def simple(a):
|
||||
return a
|
||||
@@ -13,3 +17,13 @@ nested()
|
||||
|
||||
def nested_no_call_to_function(*args):
|
||||
return simple(1, *args)
|
||||
|
||||
|
||||
def simple2(a, b, c):
|
||||
return b
|
||||
def nested(*args):
|
||||
return simple2(1, *args)
|
||||
def nested_twice(*args1):
|
||||
return nested(*args1)
|
||||
|
||||
nested_twice(2, 3)
|
||||
|
||||
Reference in New Issue
Block a user