diff options
author | 2021-09-03 00:31:12 -0700 | |
---|---|---|
committer | 2021-09-03 00:31:12 -0700 | |
commit | ea47bc617e558929bcee39e6008a57d6dd814aa1 (patch) | |
tree | c40e2f23e55119fb33f83271d227103cb9be7c6f /bot/exts/evergreen/source.py | |
parent | Improved consistency for codeblocks to end with a newline (diff) | |
parent | Merge pull request #802 from python-discord/decorator-factory/typehints-fix (diff) |
Merge branch 'main' into android-codeblock-fix
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. |