mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-15 10:07:06 +08:00
add a test that wasnt working with the old dynamic param lookup.
This commit is contained in:
@@ -65,6 +65,22 @@ def func(c=1):
|
|||||||
|
|
||||||
func(1.0)
|
func(1.0)
|
||||||
|
|
||||||
|
def tricky_decorator(func):
|
||||||
|
def wrapper(*args):
|
||||||
|
return func(1, *args)
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
@tricky_decorator
|
||||||
|
def func(a, b):
|
||||||
|
#? int()
|
||||||
|
a
|
||||||
|
#? float()
|
||||||
|
b
|
||||||
|
|
||||||
|
func(1.0)
|
||||||
|
|
||||||
# Needs to be here, because in this case func is an import -> shouldn't lead to
|
# Needs to be here, because in this case func is an import -> shouldn't lead to
|
||||||
# exceptions.
|
# exceptions.
|
||||||
import sys as func
|
import sys as func
|
||||||
|
|||||||
Reference in New Issue
Block a user