mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-02 04:03:33 +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)
|
self.draw.draw_rectangle(xy, ink, 0, width)
|
||||||
|
|
||||||
def rounded_rectangle(
|
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."""
|
"""Draw a rounded rectangle."""
|
||||||
if isinstance(xy[0], (list, tuple)):
|
if isinstance(xy[0], (list, tuple)):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user