Add a doc string to Rect.corners
This commit is contained in:
parent
22ad73af0b
commit
445c600bf9
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue