aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
authorGravatar Anubhav1603 <[email protected]>2020-09-21 13:45:16 +0530
committerGravatar Anubhav1603 <[email protected]>2020-09-21 13:45:16 +0530
commite5305fc75dc3a506370351e6c9dbac5e2aaa40c6 (patch)
tree1c2525c321a30e0936c6ec6002cfab1d48478d3e /bot/exts
parentchanged List[str]->Optional[List[str]] (diff)
removed t.optional
Diffstat (limited to 'bot/exts')
-rw-r--r--bot/exts/evergreen/wikipedia.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py
index 588db9d6..3a82db62 100644
--- a/bot/exts/evergreen/wikipedia.py
+++ b/bot/exts/evergreen/wikipedia.py
@@ -1,7 +1,7 @@
import asyncio
import datetime
import logging
-from typing import List, Optional
+from typing import List
from discord import Color, Embed, Message
from discord.ext import commands
@@ -26,7 +26,7 @@ class WikipediaCog(commands.Cog):
"""Making formatted wikipedia link."""
return f'`{index}` [{titles}]({WIKIPEDIA_URL.format(title=titles.replace(" ", "_"))})'
- async def search_wikipedia(self, search_term: str) -> Optional[List[str]]:
+ async def search_wikipedia(self, search_term: str) -> List[str]:
"""Search wikipedia and return the first 10 pages found."""
async with self.http_session.get(SEARCH_API.format(search_term=search_term)) as response:
data = await response.json()