1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 10:49:24 +00:00

Fix NameError in utils.get

This commit is contained in:
Rapptz 2022-02-20 11:22:40 -05:00
parent c406951532
commit 5589934a59

@ -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
)