diff options
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/wikipedia.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py index b6714747..c697ea85 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 Optional, List +from typing import List, Optional  from discord import Color, Embed, Member  from discord.ext import commands @@ -19,7 +19,7 @@ class WikipediaCog(commands.Cog):          self.bot = bot          self.http_session = bot.http_session -    async def search_wikipedia(self, search_term: str) -> Optional[str]: +    async def search_wikipedia(self, search_term: str) -> Optional[list]:          """Search wikipedia and return the first page found."""          async with self.http_session.get(SEARCH_API.format(search_term=search_term)) as response:              data = await response.json() | 
