basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

The types in `types` should work as annotations

Open KotlinIsland opened this issue 3 years ago • 0 comments

from types import FunctionType
def f(): pass
f: FunctionType = f  # error: expected FunctionType, found Callable

KotlinIsland avatar Apr 21 '22 13:04 KotlinIsland