Skip to content

Commit bec5782

Browse files
authored
[Leveler] Fix dep warnings, part 2 (#181)
* fix dep warnings properly * fix dep warnings properly
1 parent 5087cbf commit bec5782

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

leveler/def_imgen_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
)
2121

2222
try:
23-
from PIL.Image.Resampling import LANCZOS
23+
from PIL import Image
24+
25+
LANCZOS = Image.Resampling.LANCZOS
2426
except ModuleNotFoundError:
2527
from PIL.Image import LANCZOS
2628

leveler/image_generators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
)
2525

2626
try:
27-
from PIL.Image.Resampling import LANCZOS
27+
from PIL import Image
28+
29+
LANCZOS = Image.Resampling.LANCZOS
2830
except ModuleNotFoundError:
2931
from PIL.Image import LANCZOS
3032

leveler/leveler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Leveler(
2929
):
3030
"""A level up thing with image generation!"""
3131

32-
__version__ = "3.0.5"
32+
__version__ = "3.0.6"
3333

3434
# noinspection PyMissingConstructor
3535
def __init__(self, bot: Red):

0 commit comments

Comments
 (0)