diff options
author | 2023-07-14 14:03:48 -0500 | |
---|---|---|
committer | 2023-07-14 14:03:48 -0500 | |
commit | 643e673bd1ed72b98b6c2728f25b4a96ba758579 (patch) | |
tree | 38d1d1e3268c49dbbda3b0e688fa4fa3e2894ea7 /bot/utils/halloween/spookifications.py | |
parent | Fix incorrect permissions target (diff) | |
parent | Bump sentry-sdk from 1.27.1 to 1.28.0 (#1325) (diff) |
Merge branch 'python-discord:main' into undeprecate-bookmark
Diffstat (limited to 'bot/utils/halloween/spookifications.py')
-rw-r--r-- | bot/utils/halloween/spookifications.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/utils/halloween/spookifications.py b/bot/utils/halloween/spookifications.py index c45ef8dc..b0c139e6 100644 --- a/bot/utils/halloween/spookifications.py +++ b/bot/utils/halloween/spookifications.py @@ -6,7 +6,7 @@ from PIL import Image, ImageOps log = logging.getLogger() -def inversion(im: Image) -> Image: +def inversion(im: Image.Image) -> Image.Image: """ Inverts the image. @@ -17,7 +17,7 @@ def inversion(im: Image) -> Image: return inv -def pentagram(im: Image) -> Image: +def pentagram(im: Image.Image) -> Image.Image: """Adds pentagram to the image.""" im = im.convert("RGB") wt, ht = im.size @@ -27,7 +27,7 @@ def pentagram(im: Image) -> Image: return im -def bat(im: Image) -> Image: +def bat(im: Image.Image) -> Image.Image: """ Adds a bat silhoutte to the image. @@ -49,7 +49,7 @@ def bat(im: Image) -> Image: return im -def get_random_effect(im: Image) -> Image: +def get_random_effect(im: Image.Image) -> Image.Image: """Randomly selects and applies an effect.""" effects = [inversion, pentagram, bat] effect = choice(effects) |