Skip to content

Allow 'defaults' override on nested dataclasses #64

@jacebrowning

Description

@jacebrowning

There's a test demonstrating the expected behavior here:

@pytest.mark.xfail(reason='https://github.com/jacebrowning/datafiles/issues/64')
def it_converts_attributes(expect, sample):
expect(sample.datafile.data) == {
'name': "a",
'score': 0.5,
'nested': {'name': "b"},
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions