Skip to content

Commit

Permalink
Minor lint improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrob committed Sep 12, 2024
1 parent 52e7299 commit 5610650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emailproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__author__ = 'Simon Robinson'
__copyright__ = 'Copyright (c) 2024 Simon Robinson'
__license__ = 'Apache 2.0'
__version__ = '2024-07-29' # ISO 8601 (YYYY-MM-DD)
__version__ = '2024-09-12' # ISO 8601 (YYYY-MM-DD)
__package_version__ = '.'.join([str(int(i)) for i in __version__.split('-')]) # for pyproject.toml usage only

import abc
Expand Down Expand Up @@ -2771,6 +2771,7 @@ def get_icon_size(text, font_size):

# pillow's getsize method was deprecated in 9.2.0 (see docs for PIL.ImageFont.ImageFont.getsize)
if packaging.version.Version(importlib_metadata.version('pillow')) < packaging.version.Version('9.2.0'):
# noinspection PyUnresolvedReferences
font_width, font_height = font.getsize(text)
return font, font_width, font_height

Expand Down

0 comments on commit 5610650

Please sign in to comment.