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