void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" from typing import TypedDict, List Movie = TypedDict('Movie', {'address': List[str]}, total=False) class Movie2(TypedDict, total=False): address: List[str] movie = Movie() movie2 = Movie2() s: str = movie['address'][0] s: str = movie2['address'][0] s: str = movie['address'][<warning descr="Unexpected type(s):(str)Possible type(s):(int)(slice)">'i'</warning>] s2: str = movie2['address'][<warning descr="Unexpected type(s):(str)Possible type(s):(int)(slice)">'i'</warning>] """)); }