aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/fun.py
diff options
context:
space:
mode:
authorGravatar PureFunctor <[email protected]>2020-06-28 13:53:54 +0800
committerGravatar PureFunctor <[email protected]>2020-06-29 20:48:41 +0800
commit1d9ee64755736b715896e90c9b359b490f08e547 (patch)
treec498d631639ca55ec992a59ee137a64da587dba7 /bot/exts/evergreen/fun.py
parentAdd 'cc' alias for caesarcipher (diff)
Fix return type annotation
Diffstat (limited to 'bot/exts/evergreen/fun.py')
-rw-r--r--bot/exts/evergreen/fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py
index 0abc0138..d376c44e 100644
--- a/bot/exts/evergreen/fun.py
+++ b/bot/exts/evergreen/fun.py
@@ -3,7 +3,7 @@ import json
import logging
import random
from pathlib import Path
-from typing import Callable, Tuple, Union
+from typing import Callable, Iterable, Tuple, Union
from discord import Embed, Message
from discord.ext import commands
@@ -120,7 +120,7 @@ class Fun(Cog):
Also accepts a valid Discord Message ID or link.
"""
- def caesar_func(text: str) -> str:
+ def caesar_func(text: str) -> Iterable[str]:
"""Implements a lazy Caesar Cipher algorithm."""
for char in text:
if not char.isascii() or not char.isalpha() or char.isspace():