void () { doTestByText(""" from typing_extensions import final def output(): class Output: @final def foo(self): pass return Output r = output() class SubClass(r): def <warning descr="'Output.foo' is marked as '@final' and should not be overridden">foo</warning>(self): pass"""); }