Add a doc string to Rect.corners

This commit is contained in:
Eryn Wells 2023-02-19 19:08:32 -08:00
parent 22ad73af0b
commit 445c600bf9

View file

@ -195,6 +195,7 @@ class Rect:
@property
def corners(self) -> Iterator[Point]:
'''An iterator over the corners of this rectangle'''
yield self.origin
yield Point(self.max_x, self.min_y)
yield Point(self.min_x, self.max_y)