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[<warning descr="TypedDict key must be a string literal; expected one of ('name', 'year')">2</warning>] movie2[<warning descr="TypedDict key must be a string literal; expected one of ('name', 'year')">2</warning>]"""); }