fix(bible): pylint fix
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 36s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 51s

This commit is contained in:
Seaswimmer 2024-04-08 06:03:52 -04:00
parent 7ca836759f
commit 19fc6adaad
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -56,7 +56,7 @@ class Bible(commands.Cog):
image = Image.open(image_path) image = Image.open(image_path)
image = image.convert("RGBA") image = image.convert("RGBA")
data = np.array(image) data = np.array(image)
red, green, blue, alpha = data.T red, green, blue, alpha = data.T # pylint: disable=unused-variable
white_areas = (red == 255) & (blue == 255) & (green == 255) white_areas = (red == 255) & (blue == 255) & (green == 255)
data[..., :-1][white_areas.T] = color.to_rgb() data[..., :-1][white_areas.T] = color.to_rgb()
image = Image.fromarray(data) image = Image.fromarray(data)