Commit Graph

17751 Commits

Author SHA1 Message Date
Andrew Murray
1a108281b9 Removed unused code 2024-02-17 14:04:00 +11:00
Andrew Murray
617b9cbc00 Describe difference between size and bbox 2024-02-17 11:50:48 +11:00
Andrew Murray
d3b974b786 Use font in ImageDraw examples 2024-02-17 11:19:32 +11:00
Andrew Murray
5c858d75e4 Added type hints 2024-02-17 10:45:52 +11:00
Andrew Murray
26e0f6df56 Pin Python 3.13 on Windows to a3 2024-02-17 10:18:54 +11:00
Andrew Murray
3199c0ea40 Decoder and encoders subclass PyDecoder and PyEncoder 2024-02-15 20:24:08 +11:00
Andrew Murray
912a33f5e9
Merge pull request #7795 from radarhere/type_hints
Use IO[bytes] in type hints
2024-02-15 20:23:43 +11:00
Andrew Murray
bf9ba35b20
Merge branch 'main' into build-editable 2024-02-15 11:12:17 +11:00
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