[
https://issues.apache.org/jira/browse/BEAM-13843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Valentyn Tymofieiev updated BEAM-13843:
---------------------------------------
Fix Version/s: 2.37.0
Assignee: Robert Bradshaw
Resolution: Fixed
Status: Resolved (was: Open)
> 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
> Assignee: Robert Bradshaw
> Priority: P2
> Labels: types
> Fix For: 2.37.0
>
>
> 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)