Add type hints to ContainerIO by nulano · Pull Request #7656 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
radarhere merged 1 commit intopython-pillow:mainfrom
Dec 31, 2023Merged
Add type hints to ContainerIO#7656
radarhere merged 1 commit intopython-pillow:mainfrom
Add type hints to ContainerIO#7656
radarhere merged 1 commit intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Contributor
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
added
the
Type hints
label
hugovk approved these changes Dec 30, 2023
radarhere reviewed Dec 31, 2023
src/PIL/ContainerIO.py
Show resolved
Hide resolved
src/PIL/ContainerIO.py Show resolved Hide resolved
radarhere
force-pushed
the
types-containerio
branch
from
2c28417 to
9a6b631
Compare
radarhere
merged commit
42c574a
into
python-pillow:main
nulano
deleted the
types-containerio
branch
hugovk
changed the title
Add type hints to PIL.ContainerIO
Add type hints to ContainerIO
radarhere
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment