Commit Graph

50 Commits

Author SHA1 Message Date
Andrew Murray
15307955f7 Use IcoFile sizes method 2025-05-10 22:48:40 +10:00
Andrew Murray
26be2ee1e4 Lint fixes 2025-04-26 15:47:35 +10:00
Andrew Murray
b16b579797
Merge branch 'main' into main 2025-03-04 08:49:12 +11:00
Hugo van Kemenade
1e574e6f8b Replace slice and comparison with startswith 2025-02-17 23:39:33 +02:00
Andrew Murray
d00f3656a6 Changed im.tile to never be None 2024-08-30 22:28:03 +10:00
Andrew Murray
88750f42c8
Merge branch 'main' into main 2024-05-18 20:26:57 +10:00
Andrew Murray
18b87c8515 Added type hints 2024-05-11 10:48:09 +10:00
Andrew Murray
374f4d04c1
Merge branch 'main' into main 2024-04-21 21:24:47 +10:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
pre-commit-ci[bot]
76179a2ea1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-12-24 08:42:02 +00:00
Andrew Murray
bc01ee28ed
Merge branch 'main' into main 2023-12-24 19:41:39 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
pre-commit-ci[bot]
eb8405baa0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-11-06 13:24:42 +00:00
Christian Clauss
fd59f91d17 ruff: Minor optimizations of list comprehensions, x in set, etc. 2023-11-06 19:13:47 +06:00
pre-commit-ci[bot]
24183d652e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Andrew Murray
6ef6973966 Merge branch 'python-pillow' 2022-12-31 10:19:16 +11:00
Hugo van Kemenade
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Jonathan Woolf
e8684d7611
Update src/PIL/CurImagePlugin.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-10-03 11:37:02 -06:00
jlwoolf
915df6c7cf fixed bug regarding bitmap (added alpha flag) 2022-09-27 12:30:32 -06:00
jlwoolf
551e2a6afc completed cursor tests 2022-09-27 12:16:32 -06:00
jlwoolf
084704d156 linting 2022-09-27 07:59:41 -06:00
jlwoolf
cd4ee0473c docstring for cur plugin 2022-09-27 07:53:28 -06:00
pre-commit-ci[bot]
86476a9bd2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-09-23 01:08:06 +00:00
jlwoolf
9b8c29fdc0 Merge branch 'main' of https://github.com/jlwoolf/Pillow 2022-09-22 19:06:58 -06:00
jlwoolf
c74859d537 fixed bug with transparency 2022-09-22 19:05:47 -06:00
pre-commit-ci[bot]
1d846c2807 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-09-22 04:29:02 +00:00
jlwoolf
69b4ebf89b Hopefully corrected bpp issue with older .cur 2022-09-21 22:28:13 -06:00
jlwoolf
569feeec12 Merge branch 'main' of https://github.com/jlwoolf/Pillow 2022-09-21 19:09:00 -06:00
jlwoolf
7585c21901 added exceptions to pass tests 2022-09-21 19:08:57 -06:00
pre-commit-ci[bot]
6f22968f7a [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-09-22 00:57:57 +00:00
jlwoolf
a18bb13f07 Merge branch 'main' of https://github.com/jlwoolf/Pillow 2022-09-21 18:57:15 -06:00
jlwoolf
73e5955c90 hotspots now accessible in info 2022-09-21 18:57:12 -06:00
pre-commit-ci[bot]
2e08e8927c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-09-22 00:48:17 +00:00
jlwoolf
d722d0dedc Merge branch 'main' of https://github.com/jlwoolf/Pillow 2022-09-21 18:47:32 -06:00
jlwoolf
fbcf1b617a removed unused imports 2022-09-21 18:46:00 -06:00
pre-commit-ci[bot]
95b8061e68 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-09-22 00:43:19 +00:00
jlwoolf
f4fde29070 added ability to save as cursor 2022-09-21 18:42:34 -06:00
jlwoolf
32a6c2268f did not work with all .cur files 2022-09-21 17:44:57 -06:00
Alexander
1ff61bcaa6 use offset for all binary input functions instead of slicing 2020-12-30 19:10:50 +11:00
Alexander
3757b8c748 remove extra i8 calls where input is proved bytes[] or int 2020-12-30 19:04:11 +11:00
Hugo van Kemenade
dd87dd50c0 Update to isort 5 with Black profile support 2020-08-08 22:39:29 +03:00
Hugo
e5486b40f8 Merge remote-tracking branch 'upstream/master' into rm-2.7 2019-11-18 13:56:42 +02:00
Hugo
0c5895470c Remove deprecated __version__ from plugins 2019-11-05 17:01:03 +02:00
Hugo
538d9e2e5d Upgrade Python syntax with pyupgrade --py3-plus 2019-10-07 14:30:59 +03:00
Jon Dufresne
d50445ff30 Introduce isort to automate import ordering and formatting
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.

Uses the configuration recommended by the Black to avoid conflicts of
style.

Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
53a7e35004 Format with Black 2019-06-10 18:22:46 +03:00
Jon Dufresne
a11fed32b3 Deprecate PIL.*ImagePlugin.__version__ attributes
Use PIL.__version__ instead.
2019-02-02 17:39:55 -08:00
Andrew Murray
0adeb82e98 Changed Image size property to be read-only by default 2018-09-30 13:45:18 +10:00
Jon Dufresne
37f10651bd Clean up commented out debug print statements 2018-09-04 20:02:42 -07:00
wiredfool
0bb3f4fee9 source layout reorg 2017-12-28 14:49:47 +00:00