Andrew Murray
10b48a60c1
Merge branch 'main' into exif
2024-02-29 23:04:16 +11:00
Andrew Murray
492943a0ff
Fix logged tag name when loading with getexif()
2024-02-29 20:53:22 +11:00
Andrew Murray
dcbe402f77
Changed SupportsGetMesh protocol to be public
2024-02-29 20:16:41 +11:00
Hugo van Kemenade
e08e1f8340
Merge pull request #7804 from twolife/fix_flc
2024-02-22 11:05:15 +02:00
Sébastien Noel
e45477e507
fix FLI/FLC decoder for files with a prefix chunk
2024-02-22 09:13:48 +01:00
Andrew Murray
097cf182fc
Added py.typed to support type checking
2024-02-21 21:26:37 +11:00
Andrew Murray
5c858d75e4
Added type hints
2024-02-17 10:45:52 +11:00
Andrew Murray
47eaf0937f
Use IO[bytes] in type hints
2024-02-13 22:26:23 +11:00
Andrew Murray
29dd02509d
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-11 22:02:55 +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
517b797132
Removed FileDescriptor
2024-02-10 20:47:32 +11:00
Andrew Murray
19a6edeecc
Added type hints
2024-02-10 19:50:45 +11:00
Andrew Murray
152a24e13a
Simplified code
2024-02-10 16:48:02 +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
159fc068ca
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-07 20:50:36 +11:00
Hugo van Kemenade
811dd15ca5
Merge pull request #7769 from radarhere/type_hints
2024-02-06 23:12:26 +02:00
Andrew Murray
65cb0b0487
Added _typing.Coords
2024-02-06 07:49:43 +11: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
Andrew Murray
5a8e7dda79
Added type hints
2024-02-05 20:36:34 +11:00
Andrew Murray
d8f52f58be
Merge branch 'main' into main
2024-02-05 08:56:25 +11:00
Andrew Murray
8d96e3bc59
Changed name of first _Tile parameter
2024-02-02 23:54:31 +11:00
pre-commit-ci[bot]
256f3f1966
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-01-31 19:38:55 +00:00
Hugo van Kemenade
f2228e0a7c
Replace bytes | str | Path with StrOrBytesPath
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-01-31 12:37:53 -07:00
Andrew Murray
d57b5e827c
Corrected check
2024-01-31 19:10:33 +11:00
Andrew Murray
5efa2ade22
Added test
2024-01-31 19:10:33 +11:00
Andrew Murray
39cbd4f0f1
Expanded error message strings
2024-01-31 19:10:33 +11:00
Hugo van Kemenade
61d47c3dfa
More support for arbitrary os.PathLike
2024-01-27 14:06:06 +02:00
Andrew Murray
d3205fae19
Simplified code
2024-01-27 22:54:01 +11:00
Nicola Guerrera
6998f34768
Rearrange error handling
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-27 12:08:16 +01:00
Andrew Murray
d2d9240de4
Do not declare variable until necessary
2024-01-27 20:15:31 +11:00
Andrew Murray
b81341ae7e
Only decode stderr when necessary
2024-01-27 20:15:10 +11:00
Nicola Guerrera
cd640e5df2
Refactor grabclipboard() for x11 and wayland
...
Simpified logic and made it more robust against edge cases ( see the `allowed_errors` list ). Doing error checking this way, makes the behaviour of this function for x11 and wayland platforms more silimar to darwin and windows systems.
fix typo src/PIL/ImageGrab.py
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
fix typo src/PIL/ImageGrab.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
ImageGrab: \added debian edge case to comment
2024-01-27 10:03:44 +01:00
Hugo van Kemenade
d631afc266
Use os.fspath instead of isinstance and str
2024-01-26 20:46:58 +02:00
Hugo van Kemenade
945253672a
Handle os.PathLike in is_path
2024-01-26 19:17:44 +02:00
Hugo van Kemenade
231d54b9df
Replace io.BytesIO in type hints
2024-01-22 23:21:56 +02:00
Andrew Murray
6a85653cc3
Added type hints
2024-01-18 12:05:54 +11:00
Andrew Murray
d8c7af0157
Added type hints to GdImageFile
2024-01-17 23:10:37 +11:00
Andrew Murray
7972332bc5
Added type hints
2024-01-17 19:22:45 +11:00
Hugo van Kemenade
dd753f4ab5
Merge pull request #7725 from radarhere/type_hints_tga
2024-01-17 08:47:45 +02:00
Andrew Murray
6fd85cf523
Merge pull request #7721 from radarhere/imagemath_ops
...
Changed ImageMath.ops to be static
2024-01-17 09:15:05 +11:00
Andrew Murray
54c96df9d6
Added type hints
2024-01-17 08:03:09 +11:00
Hugo van Kemenade
1d7ff595ec
Merge pull request #7724 from radarhere/type_hints_sgi
2024-01-16 22:52:43 +02:00
Hugo van Kemenade
4c5e2e4afd
Merge pull request #7720 from radarhere/type_hints_imt
2024-01-16 15:21:09 +02:00
Andrew Murray
e2aa0fd499
Changed ops to be static
2024-01-16 12:55:48 +11:00
Andrew Murray
5a587193c7
Added type hints
2024-01-16 12:22:59 +11:00
pre-commit-ci[bot]
edaf7acdb3
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-01-15 22:01:19 +00:00
Andrew Murray
6a2bdb6feb
Added type hints
2024-01-16 09:00:40 +11:00