def __eq__(self, other):
        return isinstance(other, self.__class__) \
               and (self.index, self.field_name, self.field_type, self.factory_id, self.class_id) == \
                   (other.index, other.field_name, other.field_type, other.factory_id, other.class_id)
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/serialization/portable/classdef.py/FieldDefinition.__eq__/original