From b57be7dd3eb922998bbf780bbd31bc55e8069cc4 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 13 Jun 2024 19:36:32 +1000 Subject: [PATCH] Updated type hint --- src/PIL/PyAccess.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PIL/PyAccess.py b/src/PIL/PyAccess.py index d41f00aea49..3be1ccace0c 100644 --- a/src/PIL/PyAccess.py +++ b/src/PIL/PyAccess.py @@ -148,7 +148,9 @@ def check_xy(self, xy: tuple[int, int]) -> tuple[int, int]: def get_pixel(self, x: int, y: int) -> float | tuple[int, ...]: raise NotImplementedError() - def set_pixel(self, x: int, y: int, color: float | tuple[int, ...]) -> None: + def set_pixel( + self, x: int, y: int, color: float | tuple[int, ...] | list[int] + ) -> None: raise NotImplementedError()