mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Only allow "corners" to be used as a keyword argument
This commit is contained in:
parent
0f2a4c1ae5
commit
60208a3250
|
@ -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)):
|
||||
|
|
Loading…
Reference in New Issue
Block a user