hazelcast/hazelcast-python-client

Custom serializer lookup is broken [API-1669]

yuce opened this issue · 1 comments

yuce commented

Reproducer:

class Foo:
    pass

client = HazelcastClient()
m = client.get_map("test").blocking()
m.set("foo", Foo)

Fails with:

File "/home/yuce/Work/Projects/hazelcast-python-client/hazelcast/serialization/service.py", line 447, in lookup_custom_serializer
    for super_type in obj_type.__subclasses__():
hazelcast.errors.HazelcastSerializationError: unbound method type.__subclasses__() needs an argument

Internal Jira issue: API-1669