mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 07:14:36 +01:00
we rely, perhaps a bit hackily, on there only being one copy of each type object floating about. using `deepcopy` on a Message for message extensions destroys this paradigm, which breaks things in the case where it's a later defined subtype that contains variable-length members. to fix this, we modify `__deepcopy__` on the Field class, such that it preserves the reference to the original type_obj instance.