1

Resolved

Multiple isinstance scopes don't play together nicely...

description

def f(x):
    y = object()    
    assert isinstance(x, int)
    if isinstance(y, float):
        print('hi')

    print(y)
Hover on y in print(y), it shows the type float, when it should be float, object. Remove the assert isinstance(x, int) and it shows float, object as expected.

comments