Commit Graph

69 Commits

Author SHA1 Message Date
Andrew Murray
1c2a323a90 Corrected variable name 2024-04-05 23:35:12 -05:00
Yay295
8e96748aea correct property names in method documentation 2024-04-01 09:40:39 -05:00
Nulano
c4114adc41 use Flags not Flags|int 2024-03-30 09:14:48 +01:00
Nulano
5355af0ddd use SupportsFloat instead of float in _imagingcms.pyi 2024-03-30 09:11:15 +01:00
Nulano
aef7ccda3a use SupportsRead instead of BinaryIO 2024-03-28 18:35:20 +01:00
Nulano
afd6e1fa29 import _imagingcms as core 2024-03-28 17:23:54 +01:00
Nulano
21566ebcdc add type hints to pyCms functions in ImageCms 2024-03-28 17:23:54 +01:00
Nulano
a1a687c261 add type hints to ImageCms.get_display_profile 2024-03-28 17:23:54 +01:00
Nulano
0630ef061f add type hints for ImageCms.{ImageCmsProfile,ImageCmsTransform} 2024-03-28 17:23:54 +01:00
Andrew Murray
b22e4711cb Import __version__ from . 2024-03-12 12:02:26 +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
Nulano
bddfebc331 add license comment to ImageCms; explicitly say "no replacement" for deprecations without a replacement 2024-01-08 12:57:23 +01:00
Nulano
08f11c57a1 deprecate ImageCms members: DESCRIPTION, VERSION, FLAGS, versions() 2024-01-08 00:32:47 +01:00
Ondrej Baranovič
d9ec2fd4bb
Add code formatting to ImageCms.Flags docstrings
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-01-06 14:33:11 +01:00
Nulano
0b2e2b224f document ImageCms.Flags 2024-01-01 21:40:41 +01:00
Nulano
90991428fa add LCMS2 flags to ImageCms 2024-01-01 21:40:38 +01:00
Nulano
90d5552800 use _util.DeferredError.new everywhere 2023-12-27 14:55:30 +01:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Hugo van Kemenade
27d7bd10c8 Use list comprehensions to create transformed lists 2023-12-03 21:59:44 +02:00
Andrew Murray
546f6cbc27 Replaced absolute PIL import with relative import 2023-05-20 17:11:43 +10:00
Andrew Murray
91b69857c7 Removed duplicate code 2023-04-22 10:13:56 +10:00
Hugo van Kemenade
c8ec15980b Remove constants deprecated in 9.1.0 2023-04-06 16:11:36 +03:00
Andrew Murray
68fdd2a9e7 Further improve exception traceback readability 2022-12-30 14:24:28 +11:00
Hugo van Kemenade
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Hugo van Kemenade
959e576dd2 Use f-string 2022-06-15 21:43:18 +03:00
Jingxuan He
b47bcc246f
Fix a potential wrong operator bug 2022-06-15 17:39:37 +02:00
Andrew Murray
bcded33cee
Merge pull request #6195 from hugovk/cleanup
Cleanup: various
2022-04-26 18:51:44 +10:00
Andrew Murray
35fbf22250
Merge branch 'main' into cleanup-names 2022-04-16 19:49:40 +10:00
Hugo van Kemenade
7fa92c67b1 [Private] class names should be CamelCase 2022-04-10 23:55:16 +03:00
Hugo van Kemenade
ee85e387ba Remove redundant parentheses 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
4cb8e4b3fa Add deprecations helper 2022-04-06 13:19:52 +03:00
Andrew Murray
ed8073e846 Deprecated constants in favour of enums 2022-01-15 10:07:07 +11:00
Andrew Murray
f8e4e9c2dd Added enums 2022-01-15 09:02:31 +11:00
Andrew Murray
97ed2ecd97 Changed URLs to https 2021-10-27 22:51:54 +11:00
Andrew Murray
622a1cd542 Changed URLs to HTTPS 2021-07-12 21:00:36 +10:00
Andrew Murray
c196af6ddb Fixed loading profile with non-ASCII path on Windows 2020-09-13 13:53:58 +10:00
Hugo van Kemenade
e0eec1eb56 Merge branch 'master' into rm-3.5 2020-09-01 20:16:46 +03:00
Hugo van Kemenade
10615a7da7 Upgrade Python syntax for 3.6+
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
Hugo van Kemenade
780294302d
Merge pull request #4734 from nulano/refs-missing 2020-06-28 09:29:31 +03:00
nulano
471f24f660 fix PyCMSError references
(cherry picked from commit 63d0fb4f70)
2020-06-27 15:33:05 +02:00
Ram Rachum
2f0d430807 Fix exception causes all over the codebase 2020-06-21 13:21:25 +03:00
Andrew Murray
09d58147ca Changed errors to be code formatted, instead of bold 2020-06-12 23:57:21 +10:00
Andrew Murray
7dd818fc36 Added periods 2020-06-12 08:09:51 +10:00
Andrew Murray
ab0ac93cb8
Added period
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-06-12 07:51:38 +10:00
Andrew Murray
bb01312ba9 Improved formatting 2020-06-11 22:42:13 +10:00
nulano
309291563a return None if display profile not found in ImageCms.get_display_profile 2020-02-16 21:06:13 +11:00
Andrew Murray
b0b3097018 Explicity return None
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-02-16 20:35:39 +11:00
Andrew Murray
466da649f5 get_display_profile is only supported on Windows 2020-02-16 20:35:39 +11:00
Hugo
3e24c5fea4 Replace isStringType(t) with isinstance(t, str)
Co-Authored-By: Jon Dufresne <jon.dufresne@gmail.com>
2019-10-08 17:26:52 +03:00
Hugo
538d9e2e5d Upgrade Python syntax with pyupgrade --py3-plus 2019-10-07 14:30:59 +03:00