You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 13:44:39 UTC

[GitHub] [beam] damccorm opened a new issue, #19843: MapTuple(fn) fails if fn has type hints but no default args

damccorm opened a new issue, #19843:
URL: https://github.com/apache/beam/issues/19843

   ```
   
     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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org