use object.__setattr__ in _decode_object
Allows json decoding for classes which have
disabled __setattr__ to enforce immutability.
@@ -121,7 +121,7 @@ class ObjectJSONDecoder(JSONDecoder):
obj.__dict__.update(state)
else:
for k, v in state.items():
- setattr(obj, k, v)
+ object.__setattr__(obj, k, v)
return obj
