void () { doTestByText(""" class A: def method(self, i: int): v1: <error descr="Invalid type 'self'">self</error>.B v2 = None # type: <error descr="Invalid type 'self'">self</error>.B print(self.B) class B: pass class self: pass v: self"""); }