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

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Dec 22, 2023

Helps #2625.

I also checked in strict mode:

mypy --strict src/PIL/ImageMode.py
Success: no issues found in 1 source file

We're not ready to enable strict mode for the tox check, and I don't think we need it for the first pass, but good to fix if not too tricky.

src/PIL/ImageMode.py Outdated Show resolved Hide resolved
src/PIL/ImageMode.py Outdated Show resolved Hide resolved
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
@radarhere radarhere merged commit 41e45b5 into python-pillow:main Dec 23, 2023
56 checks passed
@hugovk hugovk deleted the type-imagemode branch December 23, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants