basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

Use return type as type context for inference

Open KotlinIsland opened this issue 2 years ago • 0 comments

def f() -> list[object]:
    r = [1]
    reveal_type(r)  # list[object]
    return r

KotlinIsland avatar Sep 21 '23 12:09 KotlinIsland