basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

show "narrowed from" for members

Open KotlinIsland opened this issue 2 years ago • 0 comments

class A:
    a: object
class B(A):
    a: int
a: A
a = B()
reveal_type(a.a)  # N: Revealed type is "int"
# Actually expected N: Revealed type is "int" (narrowed from "object")

KotlinIsland avatar Oct 27 '23 06:10 KotlinIsland