Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added type hints for PixelAccess related methods and others #8032

Merged
merged 21 commits into from
Jun 25, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Updated type hint
  • Loading branch information
radarhere authored and nulano committed Jun 13, 2024
commit 20ce7ad9f8c23bf6b02fd0a68cd39b20f12b58b7
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
Loading