void () { final String test4 = """ from typing import TypedDict class Movie(TypedDict, total=False): name: str year: int m: Movie = {'name': 'Alien', 'year': 1979} m['wrong_key'] = 1 m['<caret>']"""; runWithLanguageLevel( LanguageLevel.getLatest(), () -> { myFixture.configureByText(PythonFileType.INSTANCE, test4); myFixture.completeBasic(); myFixture.checkResult(test4); assertContainsElements(myFixture.getLookupElementStrings(), "'name'", "'year'"); assertDoesntContain(myFixture.getLookupElementStrings(), "'wrong_key'"); } ); }