Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Jul 22, 2020
1 parent 9787120 commit 4642275
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Tests/test_imagefontctl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import distutils.version

import pytest
from packaging.version import parse as parse_version
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/ImageDraw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ Methods
.. note:: For historical reasons this function measures text height from
the ascender line instead of the top, see :ref:`text-anchors`.
If you wish to measure text height from the top, it is recommended
to use :meth:`.FreeTypeFont.getbbox` with `anchor='lt'` instead.
to use :meth:`.FreeTypeFont.getbbox` with ``anchor='lt'`` instead.


:param text: Text to be measured. If it contains any newline characters,
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def getsize(
.. note:: For historical reasons this function measures text height from
the ascender line instead of the top, see :ref:`text-anchors`.
If you wish to measure text height from the top, it is recommended
to use :meth:`getbbox` with `anchor='lt'` instead.
to use :meth:`getbbox` with ``anchor='lt'`` instead.
:param text: Text to measure.
Expand Down

0 comments on commit 4642275

Please sign in to comment.