Updated type hint

This commit is contained in:
Andrew Murray 2024-06-13 19:36:32 +10:00 committed by Ondrej Baranovič
parent 0a2baab6c1
commit 20ce7ad9f8

View File

@ -148,7 +148,9 @@ class PyAccess:
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()