From bad383645ec659433086b174f1ec5a7e2669d43b Mon Sep 17 00:00:00 2001 From: WH-Yoshi <130357229+WH-Yoshi@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:44:32 +0200 Subject: [PATCH] Adding hint `list[list]` for example parameter (#7966) * Adding hint list[list] for example parameter * add changeset --------- Co-authored-by: gradio-pr-bot --- .changeset/honest-spiders-visit.md | 5 +++++ gradio/chat_interface.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/honest-spiders-visit.md diff --git a/.changeset/honest-spiders-visit.md b/.changeset/honest-spiders-visit.md new file mode 100644 index 0000000000..f1f78772be --- /dev/null +++ b/.changeset/honest-spiders-visit.md @@ -0,0 +1,5 @@ +--- +"gradio": patch +--- + +fix:Adding hint `list[list]` for example parameter diff --git a/gradio/chat_interface.py b/gradio/chat_interface.py index bbf21cd01e..1bc678e9f6 100644 --- a/gradio/chat_interface.py +++ b/gradio/chat_interface.py @@ -61,7 +61,7 @@ class ChatInterface(Blocks): additional_inputs: str | Component | list[str | Component] | None = None, additional_inputs_accordion_name: str | None = None, additional_inputs_accordion: str | Accordion | None = None, - examples: list[str] | list[dict[str, str | list]] | None = None, + examples: list[str] | list[dict[str, str | list]] | list[list] | None = None, cache_examples: bool | Literal["lazy"] | None = None, title: str | None = None, description: str | None = None,