void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" from typing import TypedDict, Literal class Foo(TypedDict): foo: Literal['bar'] a: Foo = {'foo': 'bar'} b: Foo = {'foo': <warning descr="Expected type 'Literal['bar']', got 'str' instead">'baz'</warning>}""") ); }