Use functools.cached_property in ImageStat by nulano · Pull Request #7952 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
hugovk merged 3 commits intopython-pillow:mainfrom
Apr 16, 2024Merged
Use functools.cached_property in ImageStat#7952
hugovk merged 3 commits intopython-pillow:mainfrom
Use functools.cached_property in ImageStat#7952
hugovk merged 3 commits intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Contributor
nulano
commented
Apr 7, 2024
nulano
commented
Changes proposed to ImageStat in this pull request:
- Replace custom caching with
functools.cached_property - Add type hints.
- Move documentation from rst file to docstrings to include type hints in docs.
nulano
added
the
Type hints
label
radarhere
mentioned this pull request
radarhere approved these changes Apr 16, 2024
hugovk reviewed Apr 16, 2024
src/PIL/ImageStat.py
Outdated
Show resolved
Hide resolved
src/PIL/ImageStat.py Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
nulano commented Apr 16, 2024
src/PIL/ImageStat.py
Outdated
Show resolved
Hide resolved
src/PIL/ImageStat.py Outdated Show resolved Hide resolved
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
hugovk
merged commit
0e90c1c
into
python-pillow:main
Copy link Copy Markdown
Member
hugovk
commented
Apr 16, 2024
hugovk commented
Apr 16, 2024Thanks!
nulano
deleted the
types-imagestat
branch
radarhere
changed the title
Use functools.cached_property and add type hints to ImageStat
Use functools.cached_property in ImageStat
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