void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTestByText(""" from typing_extensions import Final class A: <warning descr="'Final' name should be initialized with a value">a</warning>: <warning descr="If assigned value is omitted, there should be an explicit type argument to 'Final'">Final</warning> <warning descr="'Final' name should be initialized with a value">b</warning>: Final[int] c: int d: Final[int] def __init__(self): self.d = 10""") ); }