void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTestByText(""" from typing_extensions import Final class A: a: Final[int] = 1 class B(A): <warning descr="'A.a' is 'Final' and could not be overridden">a</warning>: Final[str] = "3" """) ); }