Very small fix: the to_dict() functionality in the HybridClass correctly cascades recursively in case one of its fields is a HybridClass itself (more correctly, if the field has a to_dict or _to_dict property). However, this functionality was not present in case the field was generated from the _store_in_to_dict property. This cascading is now added.
Checklist
Mandatory:
[ ] I have added tests to cover my changes
[X] All the tests are passing, including my new ones
[X] I described my changes in this PR description
Optional:
[X] The code I wrote follows good style practices (see PEP 8 and PEP 20).
[ ] I have updated the docs in relation to my changes, if applicable
Description
Very small fix: the to_dict() functionality in the HybridClass correctly cascades recursively in case one of its fields is a HybridClass itself (more correctly, if the field has a to_dict or _to_dict property). However, this functionality was not present in case the field was generated from the _store_in_to_dict property. This cascading is now added.
Checklist
Mandatory:
Optional: