

def validate_serializer(serializer, _type):
    if (not issubclass(serializer, _type)):
        raise ValueError('Serializer should be an instance of {}'.format(_type.__name__))

dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/util.py validate_serializer/original