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

Add type hints for ImageMode #7633

Merged
merged 2 commits into from
Dec 23, 2023
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
Add type hints for ImageMode
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
  • Loading branch information
hugovk and radarhere authored Dec 23, 2023
commit 17af8eca02fe7b4e0545811e5ab9843e26a030b1
4 changes: 2 additions & 2 deletions src/PIL/ImageMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class ModeDescriptor:
def __init__(
self,
mode: str,
bands: str | tuple[str, ...],
bands: tuple[str, ...],
basemode: str,
basetype: str | tuple[str, ...],
basetype: str,
typestr: str,
) -> None:
self.mode = mode
Expand Down
Loading