We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 159fc06 commit a276cf2Copy full SHA for a276cf2
1 file changed
src/PIL/ImageFont.py
@@ -33,10 +33,10 @@
33
import warnings
34
from enum import IntEnum
35
from io import BytesIO
36
-from pathlib import Path
37
from typing import BinaryIO
38
39
from . import Image
+from ._typing import StrOrBytesPath
40
from ._util import is_directory, is_path
41
42
@@ -193,7 +193,7 @@ class FreeTypeFont:
193
194
def __init__(
195
self,
196
- font: bytes | str | Path | BinaryIO | None = None,
+ font: StrOrBytesPath | BinaryIO | None = None,
197
size: float = 10,
198
index: int = 0,
199
encoding: str = "",
0 commit comments