Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12465

Fix handling of nested typing.Generic type hints in Py3.7+

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.32.0
    • sdk-py-core
    • None

    Description

      When Beam attempts to convert a type hint like `typing.Tuple[PCollection[int], PCollection[int]]` it will fail in Python 3.7+ with something like:

      TypeError: Parameter to List hint must be a non-sequence, a type, or a TypeConstraint. PCollection[int] is an instance of _GenericAlias.
      

      Attachments

        Issue Links

          Activity

            People

              udim Udi Meiri
              udim Udi Meiri
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h