aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivek Ashokkumar <[email protected]>2025-04-12 14:06:59 +0400
committerGravatar GitHub <[email protected]>2025-04-12 14:06:59 +0400
commit90849917fad3c618ef27c78c4f8fe1b84bd6b9be (patch)
tree09c8b5ca61cdb25f81baa77a25c25f83f4e3a8e8
parentCodeSnippets: Add support for paste.pythondiscord.com (diff)
Fix return type annotation
Co-authored-by: Anand <[email protected]>
-rw-r--r--bot/exts/info/code_snippets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/code_snippets.py b/bot/exts/info/code_snippets.py
index 0e80e6036..eba15e825 100644
--- a/bot/exts/info/code_snippets.py
+++ b/bot/exts/info/code_snippets.py
@@ -178,7 +178,7 @@ class CodeSnippets(Cog):
)
return self._snippet_to_codeblock(file_contents, file_path, start_line, end_line)
- async def _fetch_pastebin_snippets(self, paste_id: str, selections: str) -> str:
+ async def _fetch_pastebin_snippets(self, paste_id: str, selections: str) -> list[str]:
"""Fetches snippets from paste.pythondiscord.com."""
paste_data = await self._fetch_response(
f"https://paste.pythondiscord.com/api/v1/paste/{paste_id}",