wagtail / Willow

A wrapper that combines the functionality of multiple Python image libraries into one API
https://willow.wagtail.org/
BSD 3-Clause "New" or "Revised" License
273 stars 53 forks source link

Better handle types when running optimisers #148

Closed RealOrangeOne closed 2 months ago

RealOrangeOne commented 2 months ago

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.

zerolab commented 2 months ago

Needs backporting to stable/1.8.x