Skip to content

Commit 953eda2

Browse files
committed
Fix docstring
1 parent 186fc12 commit 953eda2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,13 +1094,13 @@ async def autocomplete(ctx):
10941094
10951095
Parameters
10961096
-----------
1097-
values: Union[Iterable[Union[:class:`str`, :class:`int`, :class:`float`]], Callable[[:class:`ApplicationContext`], Union[Iterable[Union[:class:`str`, :class:`int`, :class:`float`]], Awaitable[Iterable[Union[:class:`str`, :class:`int`, :class:`float`]]]]], Awaitable[Iterable[Union[:class:`str`, :class:`int`, :class:`float`]]]]
1097+
values: Union[Union[Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]], Callable[[:class:`AutocompleteContext`], Union[Union[Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]], Awaitable[Union[Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]]]]], Awaitable[Union[Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]]]]
10981098
Possible values for the option. Accepts an iterable of :class:`str`, a callable (sync or async) that takes a
1099-
single argument of :class:`ApplicationContext`, or a coroutine. Must resolve to an iterable of :class:`str`.
1099+
single argument of :class:`AutocompleteContext`, or a coroutine. Must resolve to an iterable of :class:`str`.
11001100
11011101
Returns
11021102
--------
1103-
Callable[[:class:`AutocompleteContext`], Awaitable[Iterable[Union[:class:`str`, :class:`int`, :class:`float`]]]]
1103+
Callable[[:class:`AutocompleteContext`], Awaitable[Union[Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]]]]
11041104
A wrapped callback for the autocomplete.
11051105
"""
11061106
async def autocomplete_callback(ctx: AutocompleteContext) -> V:

0 commit comments

Comments
 (0)