aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-18 09:23:53 -0400
committerRapptz <[email protected]>2021-04-19 02:11:38 -0400
commitbee6402d8413af8371c0c27dd52e04ac3348201e (patch)
treee386bb629a960cab494299dec7f3fd5e5a621746 /discord/utils.py
parentUpdate lavalink's repo url (diff)
downloaddiscord.py-bee6402d8413af8371c0c27dd52e04ac3348201e.tar.xz
discord.py-bee6402d8413af8371c0c27dd52e04ac3348201e.zip
Fix utils.find predicate typing to accept Any
Diffstat (limited to 'discord/utils.py')
-rw-r--r--discord/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py
index bab26825..06a4dea2 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -295,7 +295,7 @@ def time_snowflake(dt: datetime.datetime, high: bool = False) -> int:
return (discord_millis << 22) + (2 ** 22 - 1 if high else 0)
-def find(predicate: Callable[[T], bool], seq: Iterable[T]) -> Optional[T]:
+def find(predicate: Callable[[T], Any], seq: Iterable[T]) -> Optional[T]:
"""A helper to return the first element found in the sequence
that meets the predicate. For example: ::