Only allow "corners" to be used as a keyword argument

This commit is contained in:
Andrew Murray 2023-02-17 10:32:55 +11:00
parent 0f2a4c1ae5
commit 60208a3250

View File

@ -296,7 +296,7 @@ class ImageDraw:
self.draw.draw_rectangle(xy, ink, 0, width)
def rounded_rectangle(
self, xy, radius=0, fill=None, outline=None, width=1, corners=None
self, xy, radius=0, fill=None, outline=None, width=1, *, corners=None
):
"""Draw a rounded rectangle."""
if isinstance(xy[0], (list, tuple)):