void () { doTestByText(""" from typing import TypedDict, List, LiteralString Movie = TypedDict('Movie', {'address': List[str]}, total=False) class Movie2(TypedDict, total=False): address: List[str] movie = Movie() movie2 = Movie2() s1: LiteralString = <warning descr="Expected type 'LiteralString', got 'str' instead">movie['address'][0]</warning> s2: LiteralString = <warning descr="Expected type 'LiteralString', got 'str' instead">movie2['address'][0]</warning> """); }