FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add type hints to ContainerIO by nulano · Pull Request #7656 · python-pillow/Pillow · GitHub

Add type hints to ContainerIO - #7656

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
nulano:types-containerio
Dec 31, 2023
Merged

Add type hints to ContainerIO#7656
radarhere merged 1 commit into
python-pillow:mainfrom
nulano:types-containerio

Conversation

nulano commented Dec 29, 2023
edited by hugovk
Loading

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].

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL