basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

unpack should work on unions

Open KotlinIsland opened this issue 1 year ago • 0 comments

from typing import Unpack
def f(*a: *(tuple[str, ...] | tuple[int, ...])): ...

f(1, 2)
f("a", "b")
f(1, "b")

KotlinIsland avatar Aug 26 '24 23:08 KotlinIsland