void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" from typing import TypedDict class Point(TypedDict): x: int y: int class Movie(TypedDict): name: str year: int def record_movie(movie: Movie) -> None: ... record_movie(movie={'name': 'Blade Runner', 'year': 1984}) record_movie(movie=<warning descr="TypedDict 'Movie' has missing key: 'name'">{'year': 1984}</warning>) record_movie(movie={'name': <warning descr="Expected type 'str', got 'int' instead">1984</warning>, 'year': 1984}) record_movie(movie=<warning descr="TypedDict 'Movie' has missing keys: 'name', 'year'">{}</warning>) record_movie(movie={'name': '1984', 'year': 1984, <warning descr="Extra key 'director' for TypedDict 'Movie'">'director': 'Michael Radford'</warning>}) record_movie(movie=<warning descr="Expected type 'Movie', got 'Point' instead">Point(x=123, y=321)</warning>)""") ); }