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
2 changes: 1 addition & 1 deletion Tests/test_image_getdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_sanity() -> None:


def test_mode() -> None:
def getdata(mode: str) -> tuple[float | tuple[int, ...], int, int]:
def getdata(mode: str) -> tuple[float | tuple[int, ...] | None, int, int]:
im = hopper(mode).resize((32, 30), Image.Resampling.NEAREST)
data = im.getdata()
return data[0], len(data), len(list(data))
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/_imaging.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any

class ImagingCore:
def __getitem__(self, index: int) -> float: ...
def __getitem__(self, index: int) -> float | tuple[int, ...] | None: ...
def __getattr__(self, name: str) -> Any: ...

class ImagingFont:
Expand Down
Loading