diff options
author | 2021-08-07 05:23:03 +0300 | |
---|---|---|
committer | 2021-08-31 13:08:51 -0700 | |
commit | 745cd1d6d3d6227d2a1e82cf25611d76221c40cd (patch) | |
tree | 6d653668fe1bbfd237b4c87890e0c67a36e2c7f5 /bot/exts/evergreen/fun.py | |
parent | Merge pull request #835 from python-discord/discord-2.0 (diff) |
Fix type annotations
Diffstat (limited to 'bot/exts/evergreen/fun.py')
-rw-r--r-- | bot/exts/evergreen/fun.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py index 3b266e1b..1783d7b4 100644 --- a/bot/exts/evergreen/fun.py +++ b/bot/exts/evergreen/fun.py @@ -2,8 +2,9 @@ import functools import json import logging import random +from collections.abc import Iterable from pathlib import Path -from typing import Callable, Iterable, Tuple, Union +from typing import Callable, Optional, Union from discord import Embed, Message from discord.ext import commands @@ -182,7 +183,7 @@ class Fun(Cog): await self._caesar_cipher(ctx, offset, msg, left_shift=True) @staticmethod - async def _get_text_and_embed(ctx: Context, text: str) -> Tuple[str, Union[Embed, None]]: + async def _get_text_and_embed(ctx: Context, text: str) -> tuple[str, Optional[Embed]]: """ Attempts to extract the text and embed from a possible link to a discord Message. |