Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type hints to release notes #7923

Merged
merged 3 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4325,7 +4325,7 @@ Changelog (Pillow)
- Documentation changes, URL update, transpose, release checklist
[radarhere]

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

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

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

- Modes "1" (bilevel) and "P" (palette) have been introduced. Note
Expand Down
2 changes: 1 addition & 1 deletion Tests/test_locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# 7
# 160

# one of string.whitespace is not freely convertable into ascii.
# one of string.whitespace is not freely convertible into ascii.

path = "Tests/images/hopper.jpg"

Expand Down
6 changes: 6 additions & 0 deletions docs/releasenotes/10.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ Release GIL when fetching WebP frames

Python's Global Interpreter Lock is now released when fetching WebP frames from
the libwebp decoder.

Type hints
^^^^^^^^^^

Pillow now has type hints for a large part of its modules, and the package
includes a ``py.typed`` file and the ``Typing :: Typed`` Trove classifier.
2 changes: 1 addition & 1 deletion src/libImaging/JpegDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ ImagingJpegDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t by

/* Decoder settings */

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