Add a signature check for decorated functions

Specifically where the decorator is type annotated.
This commit is contained in:
Peter Law committed 2020-06-14 16:24:42 +01:00
1 parent 1f082b69d2
commit 4f11f20e1d
1 file changed
+5 -1
@@ -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
)