From 1d9ee64755736b715896e90c9b359b490f08e547 Mon Sep 17 00:00:00 2001 From: PureFunctor Date: Sun, 28 Jun 2020 13:53:54 +0800 Subject: Fix return type annotation --- bot/exts/evergreen/fun.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot') 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(): -- cgit v1.2.3