Add a signature check for decorated functions

Specifically where the decorator is type annotated.
This commit is contained in:
Peter Law
2020-06-14 16:24:38 +01:00
parent 1f082b69d2
commit 4f11f20e1d

View File

@@ -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
)