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/source.py | |
parent | Merge pull request #835 from python-discord/discord-2.0 (diff) |
Fix type annotations
Diffstat (limited to 'bot/exts/evergreen/source.py')
-rw-r--r-- | bot/exts/evergreen/source.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/source.py b/bot/exts/evergreen/source.py index fc209bc3..7572ce51 100644 --- a/bot/exts/evergreen/source.py +++ b/bot/exts/evergreen/source.py @@ -1,6 +1,6 @@ import inspect from pathlib import Path -from typing import Optional, Tuple +from typing import Optional from discord import Embed from discord.ext import commands @@ -26,7 +26,7 @@ class BotSource(commands.Cog): embed = await self.build_embed(source_item) await ctx.send(embed=embed) - def get_source_link(self, source_item: SourceType) -> Tuple[str, str, Optional[int]]: + def get_source_link(self, source_item: SourceType) -> tuple[str, str, Optional[int]]: """ Build GitHub link of source item, return this link, file location and first line number. |