Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Tests/test_image_array.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Any
from typing import Any

import pytest
from packaging.version import parse as parse_version
Expand All @@ -13,6 +13,7 @@

im = hopper().resize((128, 100))

TYPE_CHECKING = False
if TYPE_CHECKING:
import numpy.typing as npt

Expand Down
2 changes: 1 addition & 1 deletion Tests/test_numpy.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from __future__ import annotations

import warnings
from typing import TYPE_CHECKING

import pytest

from PIL import Image, _typing

from .helper import assert_deep_equal, assert_image, hopper, skip_unless_feature

TYPE_CHECKING = False
if TYPE_CHECKING:
import numpy
import numpy.typing as npt
Expand Down
3 changes: 2 additions & 1 deletion Tests/test_qt_image_qapplication.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from __future__ import annotations

from pathlib import Path
from typing import TYPE_CHECKING, Union
from typing import Union

import pytest

from PIL import Image, ImageQt

from .helper import assert_image_equal_tofile, assert_image_similar, hopper

TYPE_CHECKING = False
if TYPE_CHECKING:
import PyQt6
import PySide6
Expand Down
2 changes: 1 addition & 1 deletion docs/dater.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import re
import subprocess
from typing import TYPE_CHECKING

TYPE_CHECKING = False
if TYPE_CHECKING:
from sphinx.application import Sphinx

Expand Down
Loading