From de223d88e8bb575a9c90ab0ab27240f22d716d02 Mon Sep 17 00:00:00 2001 From: Endre Szabo Date: Wed, 29 Apr 2026 11:22:45 +0200 Subject: [PATCH] Update of src/PIL/YaffFontFile.py as per suggested Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- src/PIL/YaffFontFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/YaffFontFile.py b/src/PIL/YaffFontFile.py index 3be0db606..8ba530c97 100644 --- a/src/PIL/YaffFontFile.py +++ b/src/PIL/YaffFontFile.py @@ -182,7 +182,7 @@ def load( :raises SyntaxError: If the file is not a valid YAFF font. """ if hasattr(font, "read"): - data = font.read() # type: ignore[union-attr] + data = font.read() if isinstance(data, bytes): text = data.decode("utf-8-sig") else: