from typing import Union


def union_type(user_id: Union[int, str]) -> str:
    """`Union` type to accept both `int` and `str`."""
    if isinstance(user_id, int):
        return "user-{}".format(100000 + user_id)
    return user_id