From 5589934a597a022b6c740bba38714e5d81c4e3f4 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 20 Feb 2022 11:22:40 -0500 Subject: [PATCH] Fix NameError in utils.get --- discord/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/utils.py b/discord/utils.py index 2df420b05..17b098cb0 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -535,7 +535,7 @@ def get(iterable: _Iter[T], /, **attrs: Any) -> Union[Optional[T], Coro[Optional return ( _get(iterable, **attrs) # type: ignore if hasattr(iterable, '__iter__') # isinstance(iterable, collections.abc.Iterable) is too slow - else _aget(predicate, **attrs) # type: ignore + else _aget(iterable, **attrs) # type: ignore )