aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/__init__.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-14 12:34:30 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-14 12:34:30 -0400
commit92c33d625068b9b39564dbf4fb9f6c1102711955 (patch)
tree40ce3e18ff8df18cb09ca2c3b2c7f00fa7e5811a /bot/utils/__init__.py
parentchore: Break up the HelpSession.build_pages method (diff)
chore: Refactor more code to follow our style guide
Diffstat (limited to 'bot/utils/__init__.py')
-rw-r--r--bot/utils/__init__.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/bot/utils/__init__.py b/bot/utils/__init__.py
index 09a4dfc3..a1985019 100644
--- a/bot/utils/__init__.py
+++ b/bot/utils/__init__.py
@@ -3,7 +3,7 @@ import contextlib
import re
import string
from datetime import datetime
-from typing import Iterable, List
+from typing import Iterable, List, Optional
import discord
from discord.ext.commands import BadArgument, Context
@@ -31,8 +31,13 @@ def resolve_current_month() -> Month:
async def disambiguate(
- ctx: Context, entries: List[str], *, timeout: float = 30,
- entries_per_page: int = 20, empty: bool = False, embed: discord.Embed = None
+ ctx: Context,
+ entries: List[str],
+ *,
+ timeout: float = 30,
+ entries_per_page: int = 20,
+ empty: bool = False,
+ embed: Optional[discord.Embed] = None
) -> str:
"""
Has the user choose between multiple entries in case one could not be chosen automatically.