Page MenuHomeSoftware Heritage

model: make to_dict() properly recursive
ClosedPublic

Authored by olasd on Oct 23 2019, 1:56 PM.

Details

Summary

Instead of relying on attr.asdict recursion, we do recursion ourselves. This
simplifies a lot of the inherited to_dict() methods.

Test Plan

tox output is unchanged

Diff Detail

Repository
rDMOD Data model
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Oct 23 2019, 2:21 PM
This revision was automatically updated to reflect the committed changes.