Skip to content

Commit 5610650

Browse files
committed
Minor lint improvement
1 parent 52e7299 commit 5610650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

emailproxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__author__ = 'Simon Robinson'
77
__copyright__ = 'Copyright (c) 2024 Simon Robinson'
88
__license__ = 'Apache 2.0'
9-
__version__ = '2024-07-29' # ISO 8601 (YYYY-MM-DD)
9+
__version__ = '2024-09-12' # ISO 8601 (YYYY-MM-DD)
1010
__package_version__ = '.'.join([str(int(i)) for i in __version__.split('-')]) # for pyproject.toml usage only
1111

1212
import abc
@@ -2771,6 +2771,7 @@ def get_icon_size(text, font_size):
27712771

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

0 commit comments

Comments
 (0)