Update the doc string of Rect.inset_rect

This commit is contained in:
Eryn Wells 2023-02-20 18:00:41 -08:00
parent 6aefff838d
commit be7198b16d

View file

@ -229,23 +229,25 @@ class Rect:
def inset_rect(self, top: int = 0, right: int = 0, bottom: int = 0, left: int = 0) -> 'Rect': def inset_rect(self, top: int = 0, right: int = 0, bottom: int = 0, left: int = 0) -> 'Rect':
''' '''
Return a new Rect inset from this rect by the specified values. Arguments are listed in clockwise order around Create a new Rect inset from this rect by the specified values.
the permeter. This method doesn't validate the returned Rect, or transform it to a canonical representation with
the origin at the top-left.
Parameters Arguments are listed in clockwise order around the permeter. This method
---------- doesn't validate the returned Rect, or transform it to a canonical
top : int representation with the origin at the top-left.
### Parameters
`top`: int
Amount to inset from the top Amount to inset from the top
right : int `right`: int
Amount to inset from the right Amount to inset from the right
bottom : int `bottom`: int
Amount to inset from the bottom Amount to inset from the bottom
left : int `left`: int
Amount to inset from the left Amount to inset from the left
Returns ### Returns
-------
Rect Rect
A new Rect, inset from `self` by the given amount on each side A new Rect, inset from `self` by the given amount on each side
''' '''