void () { doTestByText(""" from typing import TypedDict, Final class Movie(TypedDict): name: str year: int year = 'year' year2 = year m = Movie(name='Alien', year=1979) years_since_epoch = m[year2] - 1970 year = 42 print(m[<warning descr="TypedDict key must be a string literal; expected one of ('name', 'year')">year</warning>])"""); }