from typing import Tuple


def test_unpack_star_param() -> None:
    """Combine unpacking with the `*`-parameter."""

    def test(*args: int) -> Tuple[int, ...]:
        return args

    assert test(1, 2, 3) == (1, 2, 3)

    # The values in the tuple is unpacked.
    assert test(*(1, 2, 3)) == (1, 2, 3)

    # The values produced by the generator is unpacked.
    assert test(*(n for n in range(3))) == (0, 1, 2)