diff options
author | 2021-09-03 00:31:12 -0700 | |
---|---|---|
committer | 2021-09-03 00:31:12 -0700 | |
commit | ea47bc617e558929bcee39e6008a57d6dd814aa1 (patch) | |
tree | c40e2f23e55119fb33f83271d227103cb9be7c6f /bot/utils/__init__.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/utils/__init__.py')
-rw-r--r-- | bot/utils/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/utils/__init__.py b/bot/utils/__init__.py index bef12d25..91682dbc 100644 --- a/bot/utils/__init__.py +++ b/bot/utils/__init__.py @@ -2,8 +2,9 @@ import asyncio import contextlib import re import string +from collections.abc import Iterable from datetime import datetime -from typing import Iterable, List, Optional +from typing import Optional import discord from discord.ext.commands import BadArgument, Context @@ -32,7 +33,7 @@ def resolve_current_month() -> Month: async def disambiguate( ctx: Context, - entries: List[str], + entries: list[str], *, timeout: float = 30, entries_per_page: int = 20, |