Yu Feng created BEAM-14052:
------------------------------

             Summary: 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


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)

Reply via email to