Andrew Murray
41e45b5f95
Merge pull request #7633 from hugovk/type-imagemode
...
Add type hints for ImageMode
2023-12-23 22:10:10 +11:00
Hugo van Kemenade
17af8eca02
Add type hints for ImageMode
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-23 02:16:46 -07:00
Hugo van Kemenade
76809f09ef
Add type hints for ImageMode
2023-12-22 16:23:28 +02:00
Andrew Murray
e9453a7b88
Merge pull request #7631 from hugovk/future-annotations
...
Add `from __future__ import annotations` using Ruff/isort
2023-12-22 23:52:52 +11:00
Andrew Murray
64ddace6c4
Add 'from __future__ import annotations' using Ruff/isort
2023-12-22 23:06:35 +11:00
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Hugo van Kemenade
905ae8b5d1
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:07 +02:00
Andrew Murray
bfbfff0b78
Update CHANGES.rst [ci skip]
2023-12-21 22:08:38 +11:00
Hugo van Kemenade
dd42a24f9e
Merge pull request #7565 from radarhere/tile
2023-12-21 12:59:28 +02:00
Hugo van Kemenade
18907b5f7e
Merge pull request #7568 from radarhere/gif_transparency
2023-12-21 12:58:07 +02:00
Hugo van Kemenade
0331d9d48b
Merge pull request #7560 from radarhere/string_length_check
2023-12-21 12:55:37 +02:00
Hugo van Kemenade
b638d056d5
Merge pull request #7548 from radarhere/imagefont
2023-12-21 12:55:20 +02:00
Hugo van Kemenade
9eb93915c3
Merge pull request #7521 from radarhere/gif_save_all
2023-12-21 12:52:26 +02:00
Hugo van Kemenade
ccfe33fd3a
Merge pull request #7515 from radarhere/gif
2023-12-21 12:51:20 +02:00
Hugo van Kemenade
7e30619541
Merge pull request #7483 from radarhere/psd
2023-12-21 12:50:34 +02:00
Andrew Murray
e2c9e33c0d
Merge pull request #7622 from hugovk/add-mypy
...
Check types with mypy
2023-12-20 18:13:37 +11:00
Hugo van Kemenade
acc8f95f9b
Add NumPy to tox for mypy
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-12-19 11:25:42 +02:00
Hugo van Kemenade
5db5d66179
Remove default 'line-length = 88'
2023-12-19 09:23:43 +02:00
Hugo van Kemenade
b8605eaa84
Check types with mypy
2023-12-19 09:23:43 +02:00
Hugo van Kemenade
fac2b6e413
Merge pull request #7624 from radarhere/type_hints
2023-12-19 09:14:01 +02:00
Andrew Murray
1f9dafec80
Added type hints for format and format_description
2023-12-19 14:11:00 +11:00
Andrew Murray
67890b221e
Merge pull request #7623 from hugovk/cleanup-imagemath-inline-isinstance
...
ImageMath: Inline `isinstance` check
2023-12-19 08:43:21 +11:00
Hugo van Kemenade
368c05c9dc
Inline isinstance check
2023-12-18 18:11:29 +02:00
Hugo van Kemenade
a835bfb4d3
Merge pull request #7617 from radarhere/typehints
2023-12-18 15:47:05 +02:00
Andrew Murray
e1a2ad14df
Merge pull request #7619 from radarhere/github-actions
...
Update actions/upload-artifact action to v4
2023-12-16 10:15:07 +11:00
Andrew Murray
28c95013b7
Update actions/upload-artifact action to v4
2023-12-15 14:45:41 +11:00
Andrew Murray
b60a5827e8
Import annotations to allow for pipe as union type
2023-12-15 07:59:38 +11:00
Andrew Murray
e482ea9305
Corrected type hint
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-12-15 07:57:14 +11:00
Andrew Murray
ac38a91816
Added type hints
2023-12-14 23:10:30 +11:00
Andrew Murray
e5ee034675
Update CHANGES.rst [ci skip]
2023-12-14 18:34:33 +11:00
Andrew Murray
ac1f10fa82
Merge pull request #7576 from deliangyang/main
...
Import plugins relative to the module
2023-12-14 18:28:22 +11:00
Andrew Murray
0ae1377196
Update CHANGES.rst [ci skip]
2023-12-13 20:47:37 +11:00
Andrew Murray
45e44085c0
Merge pull request #7609 from bgilbert/encoder-errors
...
Translate encoder error codes to strings; deprecate `ImageFile.raise_oserror()`
2023-12-13 20:45:47 +11:00
Benjamin Gilbert
e1fb1ab5c4
Deprecate raise_oserror() for removal in Pillow 12
...
It's only useful if the caller has an IMAGING_CODEC_* error code, which
are only produced by codec decode() methods and are automatically
translated by ImageFile.
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-12-13 02:17:32 -06:00
Benjamin Gilbert
ec17dc11ba
Translate encoder error codes to strings
...
When decoding, we use raise_oserror() to convert codec error codes to
strings. Adapt that code to be used when encoding as well. Add a new
helper function that returns the exception so we can still raise
`from exc`.
2023-12-12 23:13:51 -06:00
Andrew Murray
4c7eeec4fc
Merge pull request #7600 from nulano/anchor-clarify-docs
...
Clarify default anchor alignment
2023-12-13 07:36:00 +11:00
Andrew Murray
dfc9e98141
Merge pull request #7615 from hugovk/fix-sphinx-lint
...
Update pre-commit to fix Sphinx Lint
2023-12-13 07:17:08 +11:00
Hugo van Kemenade
6dc7ee0e39
Update pre-commit to fix Sphinx Lint
2023-12-12 19:01:30 +02:00
Nulano
af2d976880
clarify default anchor alignment
2023-12-12 17:22:19 +01:00
Hugo van Kemenade
66c244af32
Merge pull request #7611 from radarhere/readthedocs
...
Updated readthedocs to latest version of Python
2023-12-09 08:55:43 +02:00
Andrew Murray
6a6487bd2a
Use latest version of Python
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-09 09:09:49 +11:00
Andrew Murray
ccb59bc371
Updated to Python 3.12
2023-12-09 08:54:23 +11:00
Hugo van Kemenade
1a98590697
Merge pull request #7608 from radarhere/releasenotes
2023-12-08 12:32:32 +02:00
Andrew Murray
9e5173846e
Updated wording
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-08 21:04:15 +11:00
Andrew Murray
c45b7590ad
Added release notes for #7488
2023-12-08 19:20:48 +11:00
Andrew Murray
5c560ca1a9
Added release notes for #7491
2023-12-08 19:20:43 +11:00
Andrew Murray
43a4477cd9
Added release notes for #7584 and #7587
2023-12-08 19:20:37 +11:00
Andrew Murray
33d5a7993b
Merge pull request #7607 from python-pillow/renovate/github-actions
...
Update github-actions
2023-12-08 08:27:40 +11:00
renovate[bot]
1dfcb592bd
Update github-actions
2023-12-07 15:07:52 +00:00
Hugo van Kemenade
976347867c
Merge pull request #7605 from radarhere/releasenotes
2023-12-07 17:07:29 +02:00