aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/halloween/spookifications.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-09 16:37:13 -0400
committerGravatar S. Co1 <[email protected]>2019-09-09 16:37:13 -0400
commit4b18d7e430d5cea16406c65349718f72919c01c3 (patch)
tree7fc4f6a0aea2d16e0409723d205c1ab45dcd920f /bot/utils/halloween/spookifications.py
parentInitial linting pass (diff)
Lint remaining files
hacktoberstats cog handled in separate PR
Diffstat (limited to 'bot/utils/halloween/spookifications.py')
-rw-r--r--bot/utils/halloween/spookifications.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/utils/halloween/spookifications.py b/bot/utils/halloween/spookifications.py
index 69b49919..11f69850 100644
--- a/bot/utils/halloween/spookifications.py
+++ b/bot/utils/halloween/spookifications.py
@@ -7,7 +7,7 @@ from PIL import ImageOps
log = logging.getLogger()
-def inversion(im):
+def inversion(im: Image) -> Image:
"""
Inverts the image.
@@ -18,7 +18,7 @@ def inversion(im):
return inv
-def pentagram(im):
+def pentagram(im: Image) -> Image:
"""Adds pentagram to the image."""
im = im.convert('RGB')
wt, ht = im.size
@@ -28,7 +28,7 @@ def pentagram(im):
return im
-def bat(im):
+def bat(im: Image) -> Image:
"""
Adds a bat silhoutte to the image.
@@ -50,7 +50,7 @@ def bat(im):
return im
-def get_random_effect(im):
+def get_random_effect(im: Image) -> Image:
"""Randomly selects and applies an effect."""
effects = [inversion, pentagram, bat]
effect = choice(effects)