From 561065047d989e79520770ee3082e32f908cc4c0 Mon Sep 17 00:00:00 2001 From: Simon Robinson Date: Thu, 12 Sep 2024 09:15:12 +0100 Subject: [PATCH] Minor lint improvement --- emailproxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emailproxy.py b/emailproxy.py index 8c0119e..0a61905 100644 --- a/emailproxy.py +++ b/emailproxy.py @@ -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 @@ -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