void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTestByText(""" from typing import List from typing_extensions import Final y: Final[List[int]] = [0, 1] def foo(): global y <warning descr="'y' is 'Final' and could not be reassigned">y</warning> = [4, 5] """) ); }