void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTestByText(""" from typing_extensions import Final def foo(self): <warning descr="'Final' name should be initialized with a value">a</warning>: Final[int] <warning descr="'Final' name should be initialized with a value">b</warning>: Final c: Final[str] = "10" """) ); }