Skip to content

Commit a276cf2

Browse files
committed
Use _typing alias
1 parent 159fc06 commit a276cf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PIL/ImageFont.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
import warnings
3434
from enum import IntEnum
3535
from io import BytesIO
36-
from pathlib import Path
3736
from typing import BinaryIO
3837

3938
from . import Image
39+
from ._typing import StrOrBytesPath
4040
from ._util import is_directory, is_path
4141

4242

@@ -193,7 +193,7 @@ class FreeTypeFont:
193193

194194
def __init__(
195195
self,
196-
font: bytes | str | Path | BinaryIO | None = None,
196+
font: StrOrBytesPath | BinaryIO | None = None,
197197
size: float = 10,
198198
index: int = 0,
199199
encoding: str = "",

0 commit comments

Comments
 (0)