mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix error when using generators with variable-length arguments
This commit is contained in:
@@ -211,6 +211,17 @@ class X():
|
||||
#?
|
||||
self.x()
|
||||
|
||||
|
||||
def decorator_var_args(function, *args):
|
||||
return function(*args)
|
||||
|
||||
@decorator_var_args
|
||||
def function_var_args(param):
|
||||
return param
|
||||
|
||||
#? int()
|
||||
function_var_args(1)
|
||||
|
||||
# -----------------
|
||||
# method decorators
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user