1
Vote

__pos__ isn't analyzed correctly

description

class C:
def __pos__(self):
    return 'abc'
x = +C()


We think x is a C instance, not a str

neg too

comments