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

Python typehints: support namedtuples

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • sdk-py-core

    Description

      2 bugs:
      1. convert_to_beam_type passes typing.NamedTuple as-is. The code that's supposed to convert it to Any is broken (and the test is buggy too).
      Fix: https://github.com/apache/beam/pull/9754/files#diff-9b2eac354738047adddd44814d4b429cR247

      2. Possible bug: collections.NamedTuple instances should also be converted to Any, or Tuple[Any, Any, ..], if other static types checker do this as well.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: