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

    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sdk-py-core
    • Labels:
      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              RobbeSneyders Robbe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: