From 4f11f20e1d880fafcc48e45f002e71a06abd0d59 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sun, 14 Jun 2020 16:24:38 +0100 Subject: [PATCH] Add a signature check for decorated functions Specifically where the decorator is type annotated. --- test/completion/pep0484_generic_passthroughs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/completion/pep0484_generic_passthroughs.py b/test/completion/pep0484_generic_passthroughs.py index 26c03ba5..ddde14de 100644 --- a/test/completion/pep0484_generic_passthroughs.py +++ b/test/completion/pep0484_generic_passthroughs.py @@ -215,7 +215,7 @@ def decorator(fn: TCallable) -> TCallable: pass -def will_be_decorated(var: complex) -> float: +def will_be_decorated(the_param: complex) -> float: pass @@ -223,3 +223,7 @@ is_decorated = decorator(will_be_decorated) #? will_be_decorated is_decorated + +#? ['the_param='] +is_decorated(the_para +)