void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" from typing import TypedDict Movie = TypedDict('Movie', {'name': str, 'year': int}, total=False) class Movie2(TypedDict, total=False): name: str year: int movie = Movie() movie2 = Movie2() s: str = <warning descr="Expected type 'str', got 'int' instead">movie['year']</warning> s2: str = <warning descr="Expected type 'str', got 'int' instead">movie2['year']</warning> """)); }