Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-1251 Python 3 Support
  3. BEAM-6535

TypeHints Py3 Error: TrivialInferenceTest.testTupleListComprehension fails on Python 3

Details

    • Sub-task
    • Status: Resolved
    • P3
    • Resolution: Duplicate
    • None
    • Not applicable
    • sdk-py-core
    • None

    Description

      This is the last remaining typehints test still failing on Python 3. It fails with:

      ======================================================================
      FAIL: testTupleListComprehension (apache_beam.typehints.trivial_inference_test.TrivialInferenceTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/home/robbe/workspace/beam/sdks/python/apache_beam/typehints/trivial_inference_test.py", line 127, in testTupleListComprehension
      [typehints.Tuple[str, typehints.Iterable[int]]])
      File "/home/robbe/workspace/beam/sdks/python/apache_beam/typehints/trivial_inference_test.py", line 35, in assertReturnType
      self.assertEquals(expected, trivial_inference.infer_return_type(f, inputs))
      AssertionError: List[Tuple[str, int]] != Any
      
      ----------------------------------------------------------------------
      

      Attachments

        Issue Links

          Activity

            People

              udim Udi Meiri
              RobbeSneyders Robbe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: