void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTestByText(""" from typing_extensions import Final def foo(): a: Final[int] = 1 <warning descr="'a' is 'Final' and could not be reassigned">a</warning> = 2 def bar(): b: Final[int] = 3 <warning descr="'b' is 'Final' and could not be reassigned">b</warning> += 4""") ); }