Skip to content

Use functools.cached_property in ImageStat#7952

Merged
hugovk merged 3 commits intopython-pillow:mainfrom
nulano:types-imagestat
Apr 16, 2024
Merged

Use functools.cached_property in ImageStat#7952
hugovk merged 3 commits intopython-pillow:mainfrom
nulano:types-imagestat

Conversation

@nulano
Copy link
Copy Markdown
Contributor

@nulano nulano commented Apr 7, 2024

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.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
@hugovk hugovk merged commit 0e90c1c into python-pillow:main Apr 16, 2024
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Apr 16, 2024

Thanks!

@nulano nulano deleted the types-imagestat branch April 16, 2024 18:04
@radarhere radarhere changed the title Use functools.cached_property and add type hints to ImageStat Use functools.cached_property in ImageStat Apr 22, 2024
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