def merge(self, other): if self is not other: assert self.custom_eq_hash == other.custom_eq_hash, ( "mixing plain dictionaries with r_dict()") ListItem.merge(self, other) if self.custom_eq_hash: self.update_rdict_annotations(other.s_rdict_eqfn, other.s_rdict_hashfn, other=other)