Skip to content

Commit

Permalink
Updated type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere authored and nulano committed Jun 13, 2024
1 parent 0a2baab commit 20ce7ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PIL/PyAccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 20ce7ad

Please sign in to comment.