Skip to content

Commit

Permalink
Fix docstring of dropdown (#5516)
Browse files Browse the repository at this point in the history
* Fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
hysts and gradio-pr-bot committed Sep 13, 2023
1 parent ef4ca64 commit c5fe8eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chubby-hats-type.md
@@ -0,0 +1,5 @@
---
"gradio": patch
---

feat:Fix docstring of dropdown
2 changes: 1 addition & 1 deletion gradio/components/dropdown.py
Expand Up @@ -68,7 +68,7 @@ def __init__(
value: default value(s) selected in dropdown. If None, no value is selected by default. If callable, the function will be called whenever the app loads to set the initial value of the component.
type: Type of value to be returned by component. "value" returns the string of the choice selected, "index" returns the index of the choice selected.
multiselect: if True, multiple choices can be selected.
allow_custom_value: If True, allows user to enter a custom value that is not in the list of choices. Only applies if `multiselect` is False.
allow_custom_value: If True, allows user to enter a custom value that is not in the list of choices.
max_choices: maximum number of choices that can be selected. If None, no limit is enforced.
filterable: If True, user will be able to type into the dropdown and filter the choices by typing. Can only be set to False if `allow_custom_value` is False.
label: component name in interface.
Expand Down

0 comments on commit c5fe8eb

Please sign in to comment.