void () { doTestByText(""" from typing import TypedDict class Movie(TypedDict): name: str year: int class Horror(Movie, total=False): based_on_book: bool m = Horror(name='Alien', year=1979) m.<warning descr="This operation might break TypedDict consistency">clear</warning>() name = 'name' m.pop('based_on_book') m.<warning descr="Key 'year' of TypedDict 'Horror' cannot be deleted">pop</warning>('year') m.<weak_warning descr="This operation might break TypedDict consistency">popitem</weak_warning>() m.setdefault('based_on_book', <warning descr="Expected type 'bool', got 'int' instead">42</warning>)"""); }