Over in CPython, after consulting with the PSF's legal representative, we decided to remove the end years from the copyright notices because there's no need to update them each January.
See:
Helps #2625.
I also checked in strict mode:
❯ mypy --strict src/PIL/ImageMode.py
Success: no issues found in 1 source file
We're not ready to enable strict mode for the tox check, and I don't think we need it f…
Helps https://github.com/python-pillow/Pillow/issues/2625.
Adds the from __future__ import annotations to all files, and will ensure it's added for new files too, so we can use newer type annotations for older Pythons.
For exampl…
Following on from https://github.com/python-pillow/Pillow/pull/7616.
I had a go setting it up on the weekend, I'm going to pause it for now, but opening a draft to show how it looks. We don't necessarily need to finish this off, and c…
_isconstant() is short and only called once, we might as well inline it, it's also quicker:
❯ python -m timeit -s "def _isconstant(v): return isinstance(v, (int, float))" "_isconstant(12.34)"
5000000 loops, best of 5: 5...
Helps #2625.
Run mypy to check type hints:
tox -e mypy
Some good advice here:
So let's start off small with just the src directory, and exclude lots …
There was a change in Hatchling that needed a new Sphinx Lint release, let's update to fix pre-commit.
Changes proposed in this pull request:
ruff . --select PERF401: "PERF401 Use a list comprehension to create a transformed list"Changes proposed in this pull request:
pypy2.7-6.0 for 6.0, because pypy still points to 5.8.0Changes proposed in this pull request:
Fedora 25 went EOL on 2017-12-12:

As of https://github.com/python-pillow/Pillow/pull/2895 we now test on all the supporte…
Just occasionally (e.g. the last master build) test_effect_noise will fail because the random noise will put the same value in these pixels:
self.assertNo...
python_requires allows pip/setuptools to install the correct Pillow release for the user's current Python version.
More info: [setuptools](https://setuptools.readthedocs.io/en/latest/setuptools.html?highlight=python_requires#new-and…
Changes proposed in this pull request:
Refactor common stuff from install_openjpeg.sh and install_webp.sh into a new download-and-extract.sh: means updating new version numbers in fewer places.
Use this new download-and-extra…
Possible fix for #2299.
pip install -e . causes problems with the collection of C+Python coverage.
Removing it and instead installing olefile explicitly on Travis CI fixes it.
Fixes #2116.
Changes proposed in this pull request:
Here's how the…
Some fixes for things found when running cd docs && make linkcheck.
The output of the command after these fixes is:
$ make linkcheck
sphinx-build -b linkcheck -d _build/doctrees . _build/linkcheck
Running Sphi...
This fixes the inconsistent multiline spacing reported in https://github.com/python-pillow/Pillow/issues/1540.
It includes the fix from @wiredfool and I updated the tests. I checked the baseline-to-baseline heights in the new images a…
This fixes the inconsistent multiline spacing reported in https://github.com/python-pillow/Pillow/issues/1540.
It includes the fix from @wiredfool and I updated the tests.
I noticed the lines are a bit close together by defa…
Workaround to close https://github.com/python-pillow/Pillow/issues/1571.
Adding sudo apt-get update before installing fixes it.
> The apt…
Review edits for https://github.com/python-pillow/Pillow/pull/1032