picharsso icon indicating copy to clipboard operation
picharsso copied to clipboard

(fyi) Deprecated constants being used

Open paw-lu opened this issue 2 years ago • 1 comments

../../../Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:17
  /Users/pawlu/Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:17: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
    "nearest": Image.NEAREST,

../../../Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:18
  /Users/pawlu/Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:18: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
    "box": Image.BOX,

../../../Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:19
  /Users/pawlu/Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:19: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
    "bilinear": Image.BILINEAR,

../../../Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:20
  /Users/pawlu/Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:20: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
    "hamming": Image.HAMMING,

../../../Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:21
  /Users/pawlu/Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:21: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
    "bicubic": Image.BICUBIC,

../../../Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:22
  /Users/pawlu/Library/Caches/pypoetry/virtualenvs/nbpreview-fES2tmKb-py3.10/lib/python3.10/site-packages/picharsso/draw/base.py:22: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
    "lanczos": Image.LANCZOS,

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

The replacements are listed here.

Thanks for the work here!

paw-lu avatar Apr 18 '22 23:04 paw-lu

Hey @paw-lu

Sorry for the late reply! I am not sure why I didn't receive a notification.

I'll see if I can get this sorted out over the weekend.

Feel free to make a PR if you like!

Thank you for using the package!

kelvindecosta avatar Jul 14 '22 18:07 kelvindecosta