From 349caaff6bf9d636f7c6aa77d5c40ca78e708e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Fri, 1 Nov 2019 18:19:37 +0100 Subject: [PATCH] [simplex] Fix issue with .update() method of magic_dictionary. --- simplex/magic_dictionary.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simplex/magic_dictionary.py b/simplex/magic_dictionary.py index 3476252..30ec60e 100644 --- a/simplex/magic_dictionary.py +++ b/simplex/magic_dictionary.py @@ -75,3 +75,10 @@ class magic_dictionary(dict): value = self.value_converter(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))