From 8c38c92a99e2fa4a1628828c291eae13181864de Mon Sep 17 00:00:00 2001 From: ZainnQureshii <43629888+ZainnQureshii@users.noreply.github.com> Date: Sun, 27 Sep 2026 15:14:10 +0200 Subject: [PATCH] Fix stale ImageDraw signatures in docs Co-Authored-By: Claude Opus 5.5 --- docs/reference/ImageDraw.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/reference/ImageDraw.rst b/docs/reference/ImageDraw.rst index faa3a236f45..370d8a32268 100644 --- a/docs/reference/ImageDraw.rst +++ b/docs/reference/ImageDraw.rst @@ -221,7 +221,7 @@ Methods :returns: An image font. -.. py:method:: ImageDraw.arc(xy, start, end, fill=None, width=0) +.. py:method:: ImageDraw.arc(xy, start, end, fill=None, width=1) Draws an arc (a portion of a circle outline) between the start and end angles, inside the given bounding box. @@ -287,7 +287,7 @@ Methods .. versionadded:: 5.3.0 -.. py:method:: ImageDraw.line(xy, fill=None, width=0, joint=None) +.. py:method:: ImageDraw.line(xy, fill=None, width=1, joint=None) Draws a line between the coordinates in the ``xy`` list. The coordinate pixels are included in the drawn line. @@ -732,7 +732,7 @@ Methods :return: ``(left, top, right, bottom)`` bounding box -.. py:method:: getdraw(im=None, hints=None) +.. py:method:: getdraw(im=None) .. warning:: This method is experimental. @@ -740,7 +740,6 @@ Methods based on the WCK interface. :param im: The image to draw in. - :param hints: An optional list of hints. :returns: A (drawing context, drawing resource factory) tuple. .. autofunction:: PIL.ImageDraw.floodfill