sematic icon indicating copy to clipboard operation
sematic copied to clipboard

Automatically convert Tuple-of-future to future-Tuple

Open augray opened this issue 2 years ago • 0 comments

We already support this for lists:

@sematic.func
def pipeline() -> typing.List[int]:
    return [foo(), bar()]

where foo and bar are Sematic funcs (thus returning futures). We should also support this:

@sematic.func
def pipeline() -> typing.Tuple[int]:
    return (foo(), bar())

augray avatar Aug 10 '22 21:08 augray