Commit Graph

556 Commits

Author SHA1 Message Date
Andrew Murray
5a587193c7 Added type hints 2024-01-16 12:22:59 +11:00
Andrew Murray
6a2bdb6feb Added type hints 2024-01-16 09:00:40 +11:00
Andrew Murray
575edbefe4
Added type hints
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-15 18:25:31 +11:00
Andrew Murray
c75a93b9a3 Added type hints 2024-01-15 16:11:48 +11:00
mergify[bot]
ed9e29d31e
Merge pull request #7714 from radarhere/type_hints_fits
Added type hints to FitsImagePlugin
2024-01-14 12:58:11 +00:00
Andrew Murray
ffd0363b65 Added type hints 2024-01-13 16:26:15 +11:00
Andrew Murray
10cf2f2651 Added type hints 2024-01-13 14:40:59 +11:00
Andrew Murray
38bfe3cddf
Added type hint
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-10 23:36:26 +11:00
Andrew Murray
659098c6ac Added type hints 2024-01-10 22:05:26 +11:00
Nulano
fc7088a561 improve ImageTransform documentation 2024-01-02 14:52:12 +01:00
Andrew Murray
24e9485e6b
Merge pull request #7671 from radarhere/imagetransform
Added type hints to ImageTransform
2024-01-01 21:45:56 +11:00
Andrew Murray
57096f55cf
Merge pull request #7642 from nulano/types-util
Add type hints to _util
2024-01-01 21:27:57 +11:00
Andrew Murray
4da1e49036 Added type hints 2024-01-01 19:22:01 +11:00
Andrew Murray
e1ea522f70 Added further type hints 2023-12-31 17:41:13 +02:00
Hugo van Kemenade
d71cf168ee
Merge pull request #7566 from radarhere/exit 2023-12-31 17:37:43 +02:00
Nulano
90d5552800 use _util.DeferredError.new everywhere 2023-12-27 14:55:30 +01:00
Andrew Murray
85818cd616 Added type hints to FontFile and subclasses 2023-12-27 12:27:21 +11:00
Andrew Murray
f8d75032db Added strict type hints 2023-12-25 18:58:47 +11:00
Andrew Murray
1f9dafec80 Added type hints for format and format_description 2023-12-19 14:11:00 +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
Hugo van Kemenade
27d7bd10c8 Use list comprehensions to create transformed lists 2023-12-03 21:59:44 +02:00
Hugo van Kemenade
76446ee450
Merge pull request #7524 from cclauss/ruff-rules-C4-PERF102-PIE810-PLR 2023-12-01 17:09:25 +02:00
Andrew Murray
5fb86c55ed Moved code closing fp and _fp into common method 2023-11-29 20:05:17 +11:00
helloworld
b235aa98c6 fix: use parent_name instead of parent_module 2023-11-28 20:21:03 +08:00
Deliang Yang
6825a76692 fix: Importing plugins from a user-specified installation directory
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fix: Wrong path replacement

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

fix: typo
2023-11-28 08:25:16 +08:00
Andrew Murray
5431b15bd2 Do not assign new fp attribute to image when exiting context manager 2023-11-24 15:19:19 +11:00
Andrew Murray
67e1253202 Do not assign new fp attribute to image when closing 2023-11-17 08:32:25 +11:00
Raphael Vieira Rossi
b25ece364b
fix: check object Image has attribute 'fp' when closes 2023-11-16 16:46:11 -03:00
Aarni Koskela
f47633a24a
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-11-13 09:28:01 +02:00
Aarni Koskela
126bc44e9e Fix up most noqas
Update Tests/bench_cffi_access.py

Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-11-12 13:47:52 +02:00
Christian Clauss
fd59f91d17 ruff: Minor optimizations of list comprehensions, x in set, etc. 2023-11-06 19:13:47 +06:00
Aarni Koskela
9e615b6ad3 Add noqas for UP031 2023-11-06 12:43:14 +02:00
Andrew Murray
91f115bead Fixed im.frombytes() for images with a zero dimension 2023-10-25 08:52:26 +11:00
Andrew Murray
5071692039 Fixed Image.frombytes() for images with a zero dimension 2023-10-25 08:52:06 +11:00
Andrew Murray
19aeed07bf Merge branch 'main' into gray 2023-10-20 07:47:17 +11:00
Andrew Murray
d682c18ded Use "gray" more consistently 2023-10-19 19:12:01 +11:00
Andrew Murray
8b71f3d3c1 Added messages to errors 2023-10-19 18:42:41 +11:00
Hugo van Kemenade
ebefb5f1e0
Merge pull request #7442 from radarhere/warning 2023-10-14 01:30:59 +02:00
Andrew Murray
31df7b1655 Use new() instead of Image()._new() 2023-10-13 15:41:26 +11:00
Andrew Murray
f24222a954 Merge branch 'main' into jpeg_xmp 2023-10-06 17:23:53 +11:00
Hugo van Kemenade
5f04b3d278
Merge pull request #7289 from radarhere/undefined_palette 2023-10-05 09:31:02 -06:00
Andrew Murray
29d23cfe07 Fixed invalid argument warning 2023-10-04 13:56:58 +11:00
Andrew Murray
e27d7a6f84 Changed has_transparency_data() to property 2023-09-26 20:14:22 +10:00
Andrew Murray
1c30809245 Allow for LA or PA in the future 2023-09-26 20:10:52 +10:00
Andrew Murray
faa66eaa6c
Added type hint
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-26 20:10:12 +10:00
Andrew Murray
6bbed1add0 Added has_transparency_data() 2023-09-25 20:10:44 +10:00
Andrew Murray
cabfed9137 Describe Image.MIME in register_mime() 2023-09-16 09:34:17 +10:00
Andrew Murray
cee8fd0788 Improved init() and preinit() documentation 2023-09-16 09:34:04 +10:00
Andrew Murray
51a6d45566 Map buffer into (0, 0) image 2023-08-31 16:31:45 +10:00
Andrew Murray
f9f367fe54
Always cast to a tuple
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-08-30 07:27:09 +10:00