Commit Graph

17408 Commits

Author SHA1 Message Date
Nulano
7490aee836 Show how to use anchors to align text in imagefont deprecations 2024-02-19 20:18:18 +01:00
Hugo van Kemenade
fe1edb1e0f Install mypy from requirements file
So Renovate can update it on a schedule
2024-02-19 16:48:44 +02:00
Andrew Murray
0692ad8cdd Updated giflib on macOS to 5.2.2 2024-02-19 23:29:58 +11:00
Andrew Murray
55d0289a7d Added image to illustrate size vs bbox 2024-02-19 17:08:21 +11:00
Hugo van Kemenade
e1c5d57d50
Merge pull request #7810 from radarhere/tidelift 2024-02-18 23:48:06 +02:00
Andrew Murray
b6fdf2e9e7 Updated package name for Tidelift 2024-02-19 07:54:58 +11:00
Hugo van Kemenade
9a8248a751
Merge pull request #7808 from radarhere/type_hints
Removed mypy excludes
2024-02-18 21:44:03 +02:00
Hugo van Kemenade
ebc57945e3
Merge pull request #7744 from radarhere/unused 2024-02-17 11:38:14 +02:00
Andrew Murray
96fc60d5d2 Removed mypy excludes 2024-02-17 20:21:25 +11:00
Andrew Murray
4ea1ad03c3
Merge branch 'main' into unused 2024-02-17 18:23:04 +11:00
Hugo van Kemenade
c194d6e9c8
Merge pull request #7807 from radarhere/type_hints
Added type hints to additional tests
2024-02-17 09:18:42 +02:00
Hugo van Kemenade
80d4fc14b8
Merge pull request #7786 from radarhere/type_hints_imageops
Added type hints to ImageOps
2024-02-17 09:16:27 +02:00
Hugo van Kemenade
e5415f37d6
Merge pull request #7805 from radarhere/windows
Pin Python 3.13 on Windows to a3
2024-02-17 09:06:07 +02:00
Andrew Murray
5ff7d926fd Added type hints 2024-02-17 15:00:38 +11:00
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
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