Add docstring

This commit is contained in:
Matthias Bisping 2023-01-10 11:31:13 +01:00
parent 16cc0007ed
commit 2fec39eda6

View File

@ -46,6 +46,7 @@ def merge_if_related(acc: T, pair: V) -> T:
def bounding_rect(alpha: Rectangle, beta: Rectangle) -> Rectangle:
"""Returns the smallest rectangle that contains both rectangles."""
return Rectangle(
min(alpha.x1, beta.x1),
min(alpha.y1, beta.y1),