PEP-448 unpacking in dict literals.

Authored by flherne on Dec 29 2016, 8:03 PM.

Description

PEP-448 unpacking in dict literals.

foo = {'a': 2}
bar = {**foo}

Previously, foo would incorrectly be added to the value type of bar.

N.B. this allows Ast::DictAst::keys to contain null values (for unpacked
dicts, where there is no key). This is necessary to determine which
values should be unpacked, because the value node has no different
properties.

No test regressions. Two new tests previously failed, now pass.

Differential Revision: https://phabricator.kde.org/D3867

Details

Committed
flherneDec 29 2016, 9:12 PM
Differential Revision
D3867: PEP-448 unpacking in dict literals.
Parents
R53:c17d665c3998: Add types from unpacked dict argument to **kwargs parameter.
Branches
Unknown
Tags
Unknown