You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If as a mutation function provided instance of custom class or partial, GOLEM rises TypeError exception on serialization parent_operator field of individual.
File "f:\GEFEST\.venv\lib\site-packages\golem\serializers\serializer.py", line 224, in default
return JSONEncoder.default(self, obj)
File "C:\Users\user\.pyenv\pyenv-win\versions\3.9.13\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type CustomMutationWrap is not JSON serializable
GOLEM verison: 0.3.3
The text was updated successfully, but these errors were encountered:
You can use @register_serializable decorator. To set custom coder and decoder methods just implement to_json and from_json methods for your class or default serialisation will be used.
If as a mutation function provided instance of custom class or partial, GOLEM rises TypeError exception on serialization parent_operator field of individual.
GOLEM verison: 0.3.3
The text was updated successfully, but these errors were encountered: