v0.4.3
- Fixed marshalling & unmarshalling edge cases (#76). The serialization and deserialization methods in the code have been updated to improve handling of edge cases during marshalling and unmarshalling of data. When encountering certain edge cases, the
_marshal_list
method will now return an empty list instead of None, and both the_unmarshal
and_unmarshal_dict
methods will return None as is if the input is None. Additionally, the_unmarshal
method has been updated to call_unmarshal_generic
instead of checking if the type reference is a dictionary or list when it is a generic alias. The_unmarshal_generic
method has also been updated to handle cases where the input is None. A new test case,test_load_empty_data_class()
, has been added to thetests/unit/test_installation.py
file to verify this behavior, ensuring that the correct behavior is maintained when encountering these edge cases during the marshalling and unmarshalling processes. These changes increase the reliability of the serialization and deserialization processes.
Contributors: @nkvuong