mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-07 11:24:32 +08:00
Fix error when using generators with variable-length arguments
This commit is contained in:
1 parent
d815470e54
commit
3a0ac37ee8
2 files changed
+18
-1
No files matched your search
@@ -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