Move an import behind the TYPE_CHECKING flag

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Sebastian Rittau 2024-05-11 10:44:52 +02:00 committed by GitHub
parent 9b44abb6b7
commit 6310280428
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,13 +35,12 @@ from enum import IntEnum
from io import BytesIO
from typing import TYPE_CHECKING, BinaryIO
from PIL import ImageFile
from . import Image
from ._typing import StrOrBytesPath
from ._util import is_directory, is_path
if TYPE_CHECKING:
from . import ImageFile
from ._imaging import ImagingFont
from ._imagingft import Font