Skip to content

Commit

Permalink
Use _typing alias
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 8, 2024
1 parent 159fc06 commit a276cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
import warnings
from enum import IntEnum
from io import BytesIO
from pathlib import Path
from typing import BinaryIO

from . import Image
from ._typing import StrOrBytesPath
from ._util import is_directory, is_path


Expand Down Expand Up @@ -193,7 +193,7 @@ class FreeTypeFont:

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

0 comments on commit a276cf2

Please sign in to comment.