Commit Graph

145 Commits

Author SHA1 Message Date
Andrew Murray
3075200dd5 Updated type hints 2025-02-07 11:15:41 +11:00
Andrew Murray
a7aadcce6c
Merge branch 'main' into typing 2025-02-06 22:48:21 +11:00
Andrew Murray
2810d7c6ba
Merge pull request #8721 from radarhere/justify
Added "justify" align for multiline text
2025-02-04 20:10:39 +11:00
Andrew Murray
e69c9ca753
Merge branch 'main' into typing 2025-01-31 22:46:38 +11:00
Andrew Murray
10eaff8ac7 Added "justify" align for multiline text 2025-01-29 20:12:45 +11:00
Andrew Murray
7093de46a7 Moved common multiline code into _prepare_multiline_text 2025-01-29 19:42:25 +11:00
Andrew Murray
9a4f39588d Use embedded color for text length in multiline_text 2025-01-29 18:58:53 +11:00
Andrew Murray
eed59263eb Moved Anchor and Direction into ImageFont 2025-01-26 15:16:51 +11:00
Andrew Murray
0e0515ce95 Moved Align into ImageDraw 2025-01-26 14:19:03 +11:00
AsfhtgkDavid
5a56008edb Fix ImageDraw 2025-01-25 22:38:57 +02:00
pre-commit-ci[bot]
653c5bd1bb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-01-25 20:37:39 +00:00
AsfhtgkDavid
de17499b95 Merge remote-tracking branch 'origin/typing' into typing 2025-01-25 22:36:54 +02:00
AsfhtgkDavid
f68fdd65a9 Add missed import 2025-01-25 22:36:38 +02:00
pre-commit-ci[bot]
fb6c1d9498 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-01-25 20:33:23 +00:00
AsfhtgkDavid
69ae6662cb Improved typing for ImageDraw 2025-01-25 22:07:46 +02:00
Andrew Murray
0318304f9a Do not draw normal text onto stroke text if they are the same color 2025-01-18 21:58:15 +11:00
Andrew Murray
8d9279dd73 Only use outside border of stroke in text() 2025-01-18 21:58:04 +11:00
Andrew Murray
eae107ceb2
Merge branch 'main' into type_hint_init 2024-08-28 08:31:09 +10:00
Andrew Murray
d5e3f6b516 If left and right sides meet, do not draw rectangle to fill gap 2024-08-15 14:46:23 +10:00
Andrew Murray
8f1157a61d Added type hints to Image.__init__() 2024-08-02 23:30:27 +10:00
Andrew Murray
726cdf5eed Added type hints 2024-07-25 22:55:49 +10:00
Andrew Murray
ab635be11b Removed unused argument 2024-07-24 22:08:15 +10:00
Hugo van Kemenade
51bd7d2ea8
Drop support for Python 3.8 (#8183)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-03 00:44:45 -06:00
Andrew Murray
d2b5e11d2b
Merge pull request #8032 from nulano/type_hints
Added type hints for PixelAccess related methods and others
2024-06-25 19:15:31 +10:00
Andrew Murray
cc83cc8ec8 Updated type hints 2024-06-22 10:09:11 +10:00
Andrew Murray
9f79e5d768 Added type hints to ImageDraw shape methods 2024-06-19 08:43:23 +10:00
Nulano
31a8da48ee Merge remote-tracking branch 'upstream/main' into type_hints
# Conflicts:
#	src/PIL/Image.py
2024-06-12 21:06:31 +02:00
Andrew Murray
be73b13ad3 Added type hints 2024-06-12 21:15:55 +10:00
Hugo van Kemenade
7928bebd65
Merge pull request #8124 from radarhere/imagedraw_getdraw 2024-06-11 06:26:27 -06:00
Andrew Murray
4679e4bf9e
Updated deprecation warning 2024-06-10 16:47:52 +10:00
Andrew Murray
2d1fe7572f Added type hints 2024-06-10 14:15:28 +10:00
Andrew Murray
e225f9f589 Deprecate ImageDraw.getdraw hints argument 2024-06-10 11:50:13 +10:00
Andrew Murray
5bacce9dc2
Merge pull request #8046 from srittau/type-annotations
Add various type annotations
2024-06-08 18:38:21 +10:00
Andrew Murray
45cdc53bbb Updated type hints 2024-06-08 18:03:06 +10:00
Andrew Murray
f5da04adb0 Added type hints
Co-authored-by: Nulano <nulano@nulano.eu>
2024-06-03 21:58:02 +10:00
Andrew Murray
d566c04d5b Updated type hints 2024-06-03 14:20:01 +10:00
Andrew Murray
6affb123c3
Merge branch 'main' into type_hints 2024-05-31 08:06:42 +10:00
void4
8db5fbead1
Update src/PIL/ImageDraw.py - set circle argument xy to type Sequence[float] instead of Coords, radius to float
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-05-27 13:27:56 +02:00
void4
38e6913579
Simplify circle() by reusing ellipse() 2024-05-27 13:01:10 +02:00
pre-commit-ci[bot]
2ee3cef50e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-26 22:25:16 +00:00
void4
2c4a6e1179 Add function and documentation to draw circle 2024-05-27 00:23:16 +02:00
Andrew Murray
73a3e4938c
Merge branch 'main' into type-annotations 2024-05-15 21:48:41 +10:00
Andrew Murray
a8d154877d Added type hints 2024-05-13 18:47:51 +10:00
Sebastian Rittau
d63caf266d Various fixes 2024-05-07 15:59:20 +02:00
Sebastian Rittau
c92f59d758 Add various type annotations 2024-05-07 14:30:34 +02:00
Nulano
5f805c39cc Added type hints for PixelAccess methods and others 2024-04-29 23:52:51 +02:00
Andrew Murray
d2453250f1 Fixed joined corners for rounded_rectangle() non-integer dimensions 2024-03-15 23:58:07 +11:00
Andrew Murray
65cb0b0487 Added _typing.Coords 2024-02-06 07:49:43 +11:00
Andrew Murray
5a8e7dda79 Added type hints 2024-02-05 20:36:34 +11:00
Andrew Murray
6768d3aa91
Merge pull request #7497 from ZachNagengast/fix-alpha-for-overlapping-glyphs
Fix incorrect color blending for overlapping glyphs in BGRA mode
2023-12-24 19:03:28 +11:00