Skip to content

Commit

Permalink
Added typing.IO to type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 4, 2023
1 parent 9a6c47a commit d042c4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from enum import IntEnum
from io import BytesIO
from pathlib import Path
from typing import IO

from . import Image
from ._util import is_directory, is_path
Expand Down Expand Up @@ -190,7 +191,7 @@ class FreeTypeFont:

def __init__(
self,
font: bytes | str | Path | None = None,
font: bytes | str | Path | IO | None = None,
size: float = 10,
index: int = 0,
encoding: str = "",
Expand Down

0 comments on commit d042c4b

Please sign in to comment.