void () { doTestByText(""" from __future__ import annotations from typing import Self class SomeClass: @staticmethod def foo(bar: <warning descr="Cannot use 'Self' in staticmethod">Self</warning>) -> <warning descr="Cannot use 'Self' in staticmethod">Self</warning>: return bar """); }