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

Better handle types when running optimisers #148

Merged

Conversation

RealOrangeOne
Copy link
Member

Fixes #147

The main change here is adding an explicit type error, rather than having a variable not be defined.

Secondly, the type handling itself gets simpler and slightly more optimised.

The main change here is adding an explicit type error, rather than having a variable not be defined.

Secondly, the type handling itself gets simpler and slightly more optimised.
willow/image.py Show resolved Hide resolved
willow/image.py Outdated Show resolved Hide resolved
Co-authored-by: Dan Braghiș <dan@zerolab.org>
@RealOrangeOne RealOrangeOne merged commit 505c936 into wagtail:main Jun 25, 2024
7 checks passed
@RealOrangeOne RealOrangeOne deleted the better-handle-optimizer-types branch June 25, 2024 09:33
@zerolab
Copy link
Collaborator

zerolab commented Jun 25, 2024

Needs backporting to stable/1.8.x

RealOrangeOne added a commit that referenced this pull request Jun 25, 2024
The main change here is adding an explicit type error, rather than having a variable not be defined.

Secondly, the type handling itself gets simpler and slightly more optimised.
RealOrangeOne added a commit that referenced this pull request Jun 25, 2024
RealOrangeOne added a commit to RealOrangeOne/Willow that referenced this pull request Jun 25, 2024
RealOrangeOne added a commit to RealOrangeOne/Willow that referenced this pull request Jun 25, 2024
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.

Dynamic image preview fails when WILLOW_OPTIMIZERS is set
2 participants