demo_eager

 1# no from __future__ import annotations!
 2from typing import List
 3from typing import Literal
 4from typing import Union
 5
 6
 7def foo(x: Literal["r", "w"]) -> Union[str, int]:
 8    raise NotImplementedError
 9
10
11def bar(x: list["int"], /) -> List["int"]:
12    raise NotImplementedError
def foo(x: Literal['r', 'w']) -> Union[str, int]:
8def foo(x: Literal["r", "w"]) -> Union[str, int]:
9    raise NotImplementedError
def bar(x: list[int], /) -> List[int]:
12def bar(x: list["int"], /) -> List["int"]:
13    raise NotImplementedError