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:
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
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user