Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
BobDotCom committed Nov 19, 2021
1 parent 186fc12 commit 953eda2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,13 +1094,13 @@ async def autocomplete(ctx):
Parameters
-----------
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`]]]]
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`]]]]
Possible values for the option. Accepts an iterable of :class:`str`, a callable (sync or async) that takes a
single argument of :class:`ApplicationContext`, or a coroutine. Must resolve to an iterable of :class:`str`.
single argument of :class:`AutocompleteContext`, or a coroutine. Must resolve to an iterable of :class:`str`.
Returns
--------
Callable[[:class:`AutocompleteContext`], Awaitable[Iterable[Union[:class:`str`, :class:`int`, :class:`float`]]]]
Callable[[:class:`AutocompleteContext`], Awaitable[Union[Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]]]]
A wrapped callback for the autocomplete.
"""
async def autocomplete_callback(ctx: AutocompleteContext) -> V:
Expand Down

0 comments on commit 953eda2

Please sign in to comment.