You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Valentyn Tymofieiev (Jira)" <ji...@apache.org> on 2022/02/07 16:49:00 UTC
[jira] [Updated] (BEAM-13843) Verify that Py 3.9 Dict Union operations are properly supported in type inference
[ https://issues.apache.org/jira/browse/BEAM-13843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentyn Tymofieiev updated BEAM-13843:
---------------------------------------
Labels: types (was: )
> Verify that Py 3.9 Dict Union operations are properly supported in type inference
> ----------------------------------------------------------------------------------
>
> Key: BEAM-13843
> URL: https://issues.apache.org/jira/browse/BEAM-13843
> Project: Beam
> Issue Type: Sub-task
> Components: sdk-py-core
> Reporter: Valentyn Tymofieiev
> Priority: P2
> Labels: types
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.1#820001)