Commit Graph

17387 Commits

Author SHA1 Message Date
Andrew Murray
21e5d5d082 Use palette when loading 2024-02-14 09:17:22 +11:00
Andrew Murray
818500b329 Raise an error if map depth is unknown 2024-02-14 07:10:44 +11:00
Andrew Murray
63987b7aba Set mode to L if palette is missing 2024-02-14 06:55:13 +11:00
Andrew Murray
47eaf0937f Use IO[bytes] in type hints 2024-02-13 22:26:23 +11:00
Andrew Murray
50e9a92c98
Merge pull request #7794 from radarhere/type_hints
Added type hints to additional tests
2024-02-13 22:22:24 +11:00
Andrew Murray
8acacffb70
Merge branch 'main' into webp-get-next-without-gil 2024-02-13 21:33:15 +11:00
Andrew Murray
3374e91d5e
Merge pull request #7750 from hugovk/type-hints-replace-io.BytesIO
Replace `io.BytesIO` in type hints
2024-02-13 21:29:52 +11:00
Andrew Murray
4ce06aac3b Added type hints 2024-02-12 23:01:44 +11:00
Andrew Murray
cdecb3da91
Merge pull request #7793 from radarhere/type_hints_test_image
Added remaining type hints to Tests/test_image_*.py
2024-02-12 23:01:19 +11:00
Andrew Murray
ea0240bf2d
Use is None
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-12 19:12:08 +11:00
Andrew Murray
3f6422b512 Added type hints 2024-02-12 09:28:53 +11:00
Andrew Murray
29dd02509d Merge branch 'main' into type-hints-replace-io.BytesIO 2024-02-11 22:02:55 +11:00
Andrew Murray
5d6f22da12
Merge pull request #7790 from radarhere/pyproject
Removed mypy excludes, except for olefile-related files
2024-02-11 21:46:27 +11:00
Hugo van Kemenade
3977124908
Update docs/reference/internal_modules.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-10 14:54:20 +02:00
Andrew Murray
112a5a4813 Exclude abstract methods 2024-02-10 22:40:24 +11:00
Andrew Murray
e614bbfe50 Exclude code only for type checking 2024-02-10 22:39:18 +11:00
Andrew Murray
8ef0ffc2b8 Removed no cover pragma 2024-02-10 22:37:42 +11:00
Andrew Murray
d02a778efd
Removed no cover pragmas
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:57:59 +11:00
Andrew Murray
68db96981c
Removed else
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:50:48 +11:00
Andrew Murray
430f50606e Current delta is determined by previous disposal 2024-02-10 21:33:32 +11:00
Hugo van Kemenade
40513025e1
Merge pull request #113 from radarhere/type-hints-replace-io.BytesIO 2024-02-10 12:31:39 +02:00
Andrew Murray
517b797132 Removed FileDescriptor 2024-02-10 20:47:32 +11:00
Hugo van Kemenade
958a651449
Merge pull request #112 from radarhere/type-hints-replace-io.BytesIO 2024-02-10 11:43:29 +02:00
Andrew Murray
19a6edeecc Added type hints 2024-02-10 19:50:45 +11:00
Andrew Murray
373c62e5cb Use subprocess with CREATE_NO_WINDOW flag in WindowsViewer 2024-02-10 19:47:50 +11:00
Andrew Murray
152a24e13a Simplified code 2024-02-10 16:48:02 +11:00
Andrew Murray
e6a521130e If previous disposal was 2, do not fill identical pixels 2024-02-09 19:47:09 +11:00
Andrew Murray
a118a82c30 Use os.path.realpath consistently when os.fspath is used 2024-02-08 18:48:45 +11:00
Andrew Murray
a276cf2c9f Use _typing alias 2024-02-08 18:48:38 +11:00
Andrew Murray
cb39b1c89e
Corrected syntax 2024-02-08 12:29:06 +11:00
Evan Miller
c93b23239d
Update src/_webp.c
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-07 20:20:27 -05:00
Andrew Murray
6782a07b8e
Merge pull request #7784 from radarhere/type_hints
Added type hints to additional tests
2024-02-08 07:43:34 +11:00
Andrew Murray
463c368211
Simplified code
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-07 21:02:34 +11:00
Andrew Murray
159fc068ca Merge branch 'main' into type-hints-replace-io.BytesIO 2024-02-07 20:50:36 +11:00
Andrew Murray
cdc498e6f3 Added type hints 2024-02-07 19:16:28 +11:00
Hugo van Kemenade
5bd8fd1dc6
Merge pull request #7783 from radarhere/lint
Lint fix
2024-02-07 09:22:29 +02:00
Andrew Murray
91645f9eff Lint fix 2024-02-07 10:19:00 +11:00
Hugo van Kemenade
811dd15ca5
Merge pull request #7769 from radarhere/type_hints 2024-02-06 23:12:26 +02:00
Evan Miller
469db5114c Release GIL while calling WebPAnimDecoderGetNext 2024-02-06 15:41:08 -05:00
Andrew Murray
3e04ca5794
Merge pull request #7780 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-02-06 22:26:36 +11:00
Andrew Murray
5f115df74f Replace deprecated "extend-ignore" with "ignore" 2024-02-06 21:21:36 +11:00
Andrew Murray
65cb0b0487 Added _typing.Coords 2024-02-06 07:49:43 +11:00
Hugo van Kemenade
3bcc7072d6 Move linter config from deprecated top-level to own section 2024-02-05 20:39:08 +02:00
Hugo van Kemenade
1acaf20f72 Enable LOG rules for Ruff linter 2024-02-05 20:37:45 +02:00
pre-commit-ci[bot]
27b0cf67e7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-05 17:18:52 +00:00
pre-commit-ci[bot]
e0da2b7120
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.2.0)
- [github.com/psf/black-pre-commit-mirror: 23.12.1 → 24.1.1](https://github.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.1)
- [github.com/PyCQA/bandit: 1.7.6 → 1.7.7](https://github.com/PyCQA/bandit/compare/1.7.6...1.7.7)
- [github.com/tox-dev/pyproject-fmt: 1.5.3 → 1.7.0](https://github.com/tox-dev/pyproject-fmt/compare/1.5.3...1.7.0)
- [github.com/abravalheri/validate-pyproject: v0.15 → v0.16](https://github.com/abravalheri/validate-pyproject/compare/v0.15...v0.16)
2024-02-05 17:18:25 +00:00
Andrew Murray
5a8e7dda79 Added type hints 2024-02-05 20:36:34 +11:00
Andrew Murray
95255536cf Merge branch 'main' into type_hints 2024-02-05 19:29:27 +11:00
Andrew Murray
dfb48ff297 Match mask size to pasted image size 2024-02-05 19:16:15 +11:00
Andrew Murray
1b67239674 Update CHANGES.rst [ci skip] 2024-02-05 11:56:55 +11:00