void () { doTestByText(""" class A: def method(self, b): <warning descr="Non-self attribute could not be type hinted">b.a</warning>: int = 1 class B: pass <warning descr="Non-self attribute could not be type hinted">B.a</warning>: str = "2" def func(a): <warning descr="Non-self attribute could not be type hinted">a.xxx</warning>: str = "2\""""); }