blob: 4cff369af54be01885ced3a21af77bee68d47bb8 (
plain)
1
2
3
4
5
6
7
8
9
|
from typing import TypeVar, Any, Union
V = TypeVar("V", str, bytes)
def check_v(x: Union[V, list[V]]) -> V:
raise NotImplementedError()
def foo(a: list[Any]) -> None:
check_v(a)
|