Skip to content

Commit aed098e

Browse files
authored
Update server_load.py to disable pylint check which doesn't account for imports inside function
1 parent fd0f723 commit aed098e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lemonade/tools/server_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _resize_image(image_path: str, width: int, height: int) -> bytes:
107107
from PIL import Image # pylint: disable=import-outside-toplevel
108108

109109
img = Image.open(image_path)
110-
img = img.resize((width, height), Image.LANCZOS)
110+
img = img.resize((width, height), Image.LANCZOS) # pylint: disable=no-member
111111
buf = io.BytesIO()
112112
img.save(buf, format="JPEG", quality=85)
113113
return buf.getvalue()

0 commit comments

Comments
 (0)