Skip to content

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
@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