MapTuple(fn) fails if fn has type hints but no default args
Open
bug
core
P3
python
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
```
def test_typed_maptuple(self):
def fn(e1: int, e2: int) -> int:
return e1 * e2
result = [(1, 1), (2, 2)] | beam.MapTuple(fn)
self.assertEqual([2, 4], sorted(result))
```
Fails in getcallargs_forhints_impl_py3 with:
```
> raise TypeCheckError(e)
E apache_beam.typehints.decorators.TypeCheckError: too many
positional arguments
```
Imported from Jira [BEAM-8588](https://issues.apache.org/jira/browse/BEAM-8588). Original Jira may contain additional context.
Reported by: udim.
Contributor guide
Assessment
This issue has not been assessed yet.