mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Add a signature check for decorated functions
Specifically where the decorator is type annotated.
This commit is contained in:
@@ -215,7 +215,7 @@ def decorator(fn: TCallable) -> TCallable:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def will_be_decorated(var: complex) -> float:
|
def will_be_decorated(the_param: complex) -> float:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@@ -223,3 +223,7 @@ is_decorated = decorator(will_be_decorated)
|
|||||||
|
|
||||||
#? will_be_decorated
|
#? will_be_decorated
|
||||||
is_decorated
|
is_decorated
|
||||||
|
|
||||||
|
#? ['the_param=']
|
||||||
|
is_decorated(the_para
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user