Add overloads for exif_transpose by cdce8p · Pull Request #8657 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
Add overloads for exif_transpose#8657
hugovk merged 2 commits intopython-pillow:mainfrom
cdce8p:overload-exif_transpose
Add overloads for exif_transpose#8657
hugovk merged 2 commits intopython-pillow:mainfrom
cdce8p:overload-exif_transpose
Conversation
Copy link Copy Markdown
Contributor
cdce8p
commented
Jan 2, 2025
cdce8p
commented
Add overloads for exif_transpose to improve the return type based on the in_place argument.
Lines 682 to 686 in 66f5a3f
| :param in_place: Boolean. Keyword-only argument. | |
| If ``True``, the original image is modified in-place, and ``None`` is returned. | |
| If ``False`` (default), a new :py:class:`~PIL.Image.Image` object is returned | |
| with the transposition applied. If there is no transposition, a copy of the | |
| image will be returned. |
radarhere
added
the
Type hints
label
radarhere approved these changes Jan 2, 2025
Copy link Copy Markdown
Contributor Author
cdce8p
commented
Jan 3, 2025
cdce8p commented
Jan 3, 2025Thanks for the PR to my branch @radarhere 👍🏻 Just merged it.
hugovk
merged commit
9ae8cb8
into
python-pillow:main
cdce8p
deleted the
overload-exif_transpose
branch
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