Skip to content

Commit

Permalink
Don't raise warnings when returning an updated component in a diction…
Browse files Browse the repository at this point in the history
…ary (#5766)

* testing

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
abidlabs and gradio-pr-bot committed Oct 3, 2023
1 parent 2a5b9e0 commit ef96d35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lucky-news-float.md
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Don't raise warnings when returning an updated component in a dictionary
2 changes: 1 addition & 1 deletion gradio/helpers.py
Expand Up @@ -823,7 +823,7 @@ def change_textbox(choice):


def skip() -> dict:
return update()
return {"__type__": "generic_update"}


@document()
Expand Down

0 comments on commit ef96d35

Please sign in to comment.