void () { runWithLanguageLevel( LanguageLevel.PYTHON35, () -> doTestByText(""" from typing_extensions import Final def foo(a: <warning descr="'Final' could not be used in annotations for function parameters">Final</warning>) -> None: pass def bar(a, <warning descr="'Final' could not be used in annotations for function parameters"># type: Final[str]</warning> ): pass def baz(a): <warning descr="'Final' could not be used in annotations for function parameters"># type: (Final[int]) -> None</warning> pass""") ); }