void () { final String test2 = """ from typing import TypedDict, Mapping class Movie(TypedDict): name: str year: int class A(TypedDict): film: Movie genre: str def get_back(m: A): a = m['film']['<caret>']"""; runWithLanguageLevel( LanguageLevel.getLatest(), () -> { myFixture.configureByText(PythonFileType.INSTANCE, test2); myFixture.completeBasic(); myFixture.checkResult(test2); assertContainsElements(myFixture.getLookupElementStrings(), "'name'", "'year'"); } ); }