[
https://issues.apache.org/jira/browse/BEAM-14052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kenneth Knowles updated BEAM-14052:
-----------------------------------
Status: Open (was: Triage Needed)
> Input type annotation of MapTuple and FlatMapTuple are ignored
> --------------------------------------------------------------
>
> Key: BEAM-14052
> URL: https://issues.apache.org/jira/browse/BEAM-14052
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Yu Feng
> Priority: P2
>
> This is a tracking bug for the remaining issue of type annotation support in
> MapTuple and FlatMapTuple described in PR #16351.
> Consider 2 cases:
> - MapTuple(fn(a: int, b: int, *args))
> - MapTuple(fn(a: int, b: int, args: Tuple[Any, ...]))
> We unpack (1, 2, 3, 4) to a=1, b=1, args=(3, 4) in first case, but fail in
> second case.
> My concern is that the beam representation of these 2 signatures are *likely*
> the same:
> input_types[0] = (int, int, Tuple[Any, ...])
> input_types[1] = {}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)