Use _typing alias

This commit is contained in:
Andrew Murray 2024-02-08 18:48:38 +11:00
parent 159fc068ca
commit a276cf2c9f

View File

@ -33,10 +33,10 @@ import sys
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
@ -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 = "",