Skip to content

Commit d97585a

Browse files
authored
Merge pull request #7923 from hugovk/release-notes
Add type hints to release notes
2 parents 6c55ab2 + 6d57e88 commit d97585a

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGES.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4325,7 +4325,7 @@ Changelog (Pillow)
43254325
- Documentation changes, URL update, transpose, release checklist
43264326
[radarhere]
43274327

4328-
- Fixed saving to nonexistant files specified by pathlib.Path objects #1748 (fixes #1747)
4328+
- Fixed saving to nonexistent files specified by pathlib.Path objects #1748 (fixes #1747)
43294329
[radarhere]
43304330

43314331
- Round Image.crop arguments to the nearest integer #1745 (fixes #1744)
@@ -7536,7 +7536,7 @@ The test suite includes 400 individual tests.
75367536
- A handbook is available (distributed separately).
75377537

75387538
- The coordinate system is changed so that (0,0) is now located
7539-
in the upper left corner. This is in compliancy with ISO 12087
7539+
in the upper left corner. This is in compliance with ISO 12087
75407540
and 90% of all other image processing and graphics libraries.
75417541

75427542
- Modes "1" (bilevel) and "P" (palette) have been introduced. Note

Tests/test_locale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# 7
2020
# 160
2121

22-
# one of string.whitespace is not freely convertable into ascii.
22+
# one of string.whitespace is not freely convertible into ascii.
2323

2424
path = "Tests/images/hopper.jpg"
2525

docs/releasenotes/10.3.0.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,9 @@ Release GIL when fetching WebP frames
104104

105105
Python's Global Interpreter Lock is now released when fetching WebP frames from
106106
the libwebp decoder.
107+
108+
Type hints
109+
^^^^^^^^^^
110+
111+
Pillow now has type hints for a large part of its modules, and the package
112+
includes a ``py.typed`` file and the ``Typing :: Typed`` Trove classifier.

src/libImaging/JpegDecode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ ImagingJpegDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t by
180180

181181
/* Decoder settings */
182182

183-
/* jpegmode indicates whats in the file; if not set, we'll
183+
/* jpegmode indicates what's in the file; if not set, we'll
184184
trust the decoder */
185185
if (strcmp(context->jpegmode, "L") == 0) {
186186
context->cinfo.jpeg_color_space = JCS_GRAYSCALE;

0 commit comments

Comments
 (0)