rect.union(r)

Return a rectangle object that is a union of the two rectangles.