Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12000 Support Python 3.9 in Apache Beam
  3. BEAM-13843

Verify that Py 3.9 Dict Union operations are properly supported in type inference

Details

    • Sub-task
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.37.0
    • sdk-py-core

    Description

      https://www.python.org/dev/peps/pep-0584 added a new syntax for dict union in Python 3.9
      I am seeing 3 new opcodes in CPython that look relevant:
      https://www.diffchecker.com/kX5h3Cli

      SET_UPDATE
      DICT_MERGE
      DICT_UPDATE

      We should add tests for type inference involving these operations and see if we need additional changes to https://github.com/apache/beam/blob/master/sdks/python/apache_beam/typehints/opcodes.py

      Attachments

        Activity

          People

            robertwb Robert Bradshaw
            tvalentyn Valentyn Tymofieiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: