def __eq__()

in metrics/heron/influxdb/client.py [0:0]


    def __eq__(self, other: object) -> bool:

        if not isinstance(other, HeronInfluxDBClient):
            return False

        if other.username and other.password:
            other_hash: int = hash(other.host + str(other.port) +
                                   other.database_prefix + other.username +
                                   other.password)
        else:
            other_hash = hash(other.host + str(other.port) +
                              other.database_prefix)

        if self.__hash__() == other_hash:
            return True

        return False