Use correct new() method to instantiate type.
@@ -428,7 +428,7 @@ def deserialize(serialization):
module_name, class_name = names # unpack
module = importlib.import_module(module_name)
cls = getattr(module, class_name)
- instance = object.__new__(cls)
+ instance = cls.__new__(cls)
try:
instance.__setstate__(serialization)
except AttributeError:
