void () { doTestByText(""" from __future__ import annotations from typing import Self class SomeClass(): def foo(self, bar: Self) -> Self: return <warning descr="Cannot return explicit class in self annotated function">SomeClass()</warning> """); }