Skip to content

Commit

Permalink
Merge pull request #5007 from radarhere/text
Browse files Browse the repository at this point in the history
Clarified that "text" must be a string
  • Loading branch information
hugovk authored Oct 25, 2020
2 parents 30a8b45 + 3581600 commit 8dfc036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/ImageDraw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Methods
Draws the string at the given position.

:param xy: The anchor coordinates of the text.
:param text: Text to be drawn. If it contains any newline characters,
:param text: String to be drawn. If it contains any newline characters,
the text is passed on to
:py:meth:`~PIL.ImageDraw.ImageDraw.multiline_text`.
:param fill: Color to use for the text.
Expand Down Expand Up @@ -362,7 +362,7 @@ Methods
Draws the string at the given position.

:param xy: The anchor coordinates of the text.
:param text: Text to be drawn.
:param text: String to be drawn.
:param fill: Color to use for the text.
:param font: An :py:class:`~PIL.ImageFont.ImageFont` instance.

Expand Down

0 comments on commit 8dfc036

Please sign in to comment.