void () { doTestByText(""" from typing_extensions import Literal a: Literal["abc"] = undefined b: Literal[b"abc"] = undefined def foo1(p1: Literal["abc"]): pass foo1(a) foo1(<warning descr="Expected type 'Literal[\\"abc\\"]', got 'Literal[b\\"abc\\"]' instead">b</warning>) def foo2(p1: Literal[b"abc"]): pass foo2(<warning descr="Expected type 'Literal[b\\"abc\\"]', got 'Literal[\\"abc\\"]' instead">a</warning>) foo2(b) def foo3(p1: str): pass foo3(a) foo3(<warning descr="Expected type 'str', got 'Literal[b\\"abc\\"]' instead">b</warning>) def foo4(p1: bytes): pass foo4(<warning descr="Expected type 'bytes', got 'Literal[\\"abc\\"]' instead">a</warning>) foo4(b) """); }