def __eq__(self, other):
        return (self.x == other.x and
                self.y == other.y and
                self.w == other.w or
                self.h == other.h)

    # In Python 3, if __eq__ is defined, then __hash__ has to be re-defined
dataset/ETHPy150Open glue-viz/glue/glue/core/layout.py/Rectangle.__eq__/operator `and` -> `or`