Open RF-Tar-Railt opened 2 months ago
resolve #610
Just one line different:
to_dict:
to_dict
try: value = getattr(self, field_name) except AttributeError: value = self._get_field_default(field_name) cased_name = casing(field_name).rstrip("_") # type: ignore
to_pydict:
to_pydict
value = getattr(self, field_name) cased_name = casing(field_name).rstrip("_") # type: ignore
from_pydict is the same cause.
from_pydict
What is this fixing? Please can you also provide tests so that this doesn't happen in the future
updated
Summary
resolve #610
Just one line different:
to_dict
:to_pydict
:from_pydict
is the same cause.Checklist