Closed smphhh closed 2 years ago
Hey @smphhh -
It appears this is a side-effect of a dictionary with exactly two fields being compatible with tuple unpacking in Python:
>>> f0, f1 = {'key0': 'val', 'key1': 'val'}
I believe I have a fix in 179/tuple-unpacking-dict-keys
- would you mind testing that branch out to verify?
Hi, yeah that branch does fix it (as well the somewhat more complex case I originally discovered the issue with).
Description
Transmute seems to be badly broken in 2.7.1 (2.6.4 works correctly) with dicts of dataclasses with default values.
What I Did
The result I get is
{'target_name': FieldOverrideSpec(target_name='data_type', data_type='default')}
which is obviously completely wrong. Removing the default value from the dataclass makes transmute work correctly.