Skip to content

Commit ddc49fb

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 9ebbcc4 commit ddc49fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

discord/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,12 +1334,8 @@ def basic_autocomplete(
13341334
Callable[[:class:`.AutocompleteContext`], Awaitable[Union[Iterable[:class:`.OptionChoice`], Iterable[:class:`str`], Iterable[:class:`int`], Iterable[:class:`float`]]]]
13351335
A wrapped callback for the autocomplete.
13361336
1337-
Note
1338-
----
1339-
Autocomplete cannot be used for options that have specified choices.
1340-
13411337
Examples
1342-
-------
1338+
--------
13431339
13441340
Basic usage:
13451341
@@ -1361,6 +1357,10 @@ async def autocomplete(ctx):
13611357
Option(str, "color", autocomplete=basic_autocomplete(("red", "green", "blue"), filter=lambda c, i: str(c.value or "") in i))
13621358
13631359
.. versionadded:: 2.0
1360+
1361+
Note
1362+
----
1363+
Autocomplete cannot be used for options that have specified choices.
13641364
"""
13651365

13661366
async def autocomplete_callback(ctx: AutocompleteContext) -> V:

0 commit comments

Comments
 (0)