void () { 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() movie['year'], movie2['year'] = <warning descr="Expected type 'int', got 'str' instead">'1984'</warning>, <warning descr="Expected type 'int', got 'str' instead">'1984'</warning> """); }