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

Conditionally define ImageCms type hint to avoid requiring core #8197

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

radarhere
Copy link
Member

Resolves #8193.

Alternative to #8196 - my thinking is that this is closer to the intention of https://peps.python.org/pep-0484/#forward-references. However, if the other PR is preferred, no problem.

@nulano
Copy link
Contributor

nulano commented Jul 3, 2024

FWIW this will also break the Docs references if Pillow is built without lcms.

Copy link

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this looks like the cleaner approach.
Though on second thought, if it breaks the doc references, it may not be... I had missed the comment above.

@radarhere
Copy link
Member Author

If there is concern about building the docs without lcms2, I've added a commit to use nitpick_ignore to prevent failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot import ImageCms with no LITTLECMS2 feature installed
4 participants