[simplex] Fix issue with .update() method of magic_dictionary.

This commit is contained in:
Mikaël Capelle 2019-11-01 18:19:37 +01:00
parent f438a8146b
commit 349caaff6b

View File

@ -75,3 +75,10 @@ class magic_dictionary(dict):
value = self.value_converter(value) value = self.value_converter(value)
super().__setitem__(key, value) super().__setitem__(key, value)
def update(self, *args, **kargs):
super().update(magic_dictionary(
*args, **kargs,
value_converter=self.value_converter,
key_predicate=self.key_predicate,
default_factory=self.default_factory))