cool-easter-32542
04/22/2023, 1:35 AM__defaults__ to extend an overrides field is not supported; using
__defaults__(
{
(python_sources, ): dict(overrides={
"*_generated.py": {
"skip_yapf": True
},
})
},
extend=True,
ignore_unknown_fields=True,
)
yields
TypeError: Even though you are using a `FrozenDict`, the underlying values are not hashable. Please use hashable (and preferably immutable) types for the underlying values, e.g. use tuples instead of lists and use FrozenOrderedSet instead of set().
Original error message: unhashable type: 'dict'
Value: FrozenDict({'overrides': {('*_generated.py',): {'skip_yapf': True}}})
while fudging the type of the overrides yields
InvalidFieldTypeException: The 'overrides' field in target my/path#__defaults__ must be dict[str | tuple[str, ...], dict[str, Any]], but was `(('*_generated.py',), (('skip_yapf', True),))` with type `tuple`.
Pants version
2.15.0
OS
Linux
Additional info
Expected behavior is that one can provide default override entry values.
pantsbuild/pantscool-easter-32542
04/22/2023, 11:40 PM