Skip to content

Commit de223d8

Browse files
Update of src/PIL/YaffFontFile.py as per suggested
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 869e587 commit de223d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PIL/YaffFontFile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def load(
182182
:raises SyntaxError: If the file is not a valid YAFF font.
183183
"""
184184
if hasattr(font, "read"):
185-
data = font.read() # type: ignore[union-attr]
185+
data = font.read()
186186
if isinstance(data, bytes):
187187
text = data.decode("utf-8-sig")
188188
else:

0 commit comments

Comments
 (0)