-
Notifications
You must be signed in to change notification settings - Fork 33
Use newest Pillow methods if 9.2.0 is installed #21
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
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 2.02%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
@jay3332 any thoughts on this? i've been testing it locally with one of my projects for the past week and everything has been working |
Any chance you could apply the hacktoberfest label to this? :) |
this is now required as latest pillow drops deprecations |
yeah |
DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
Although it is not typehinted yet,
Image.Resampling.LANCZOS
needs to be used instead ofImage.LANCZOS
to avoid warning logs.if pillow 9.2.0 or greater installed, use getlength, otherwise use getsize