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 to ContainerIO #7656

Merged
merged 1 commit into from
Dec 31, 2023
Merged

Conversation

nulano
Copy link
Contributor

@nulano nulano commented Dec 29, 2023

Helps #2625.

The two ignore comments are required because mypy doesn't know that "b" in self.fh.mode if and only if self is a ContainerIO[bytes] rather than a ContainerIO[str].

@radarhere radarhere merged commit 42c574a into python-pillow:main Dec 31, 2023
106 checks passed
@nulano nulano deleted the types-containerio branch December 31, 2023 13:26
@hugovk hugovk changed the title Add type hints to PIL.ContainerIO Add type hints to ContainerIO Dec 31, 2023
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.

3 participants