mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
5622331da7
* add type to test * ignore certain demos * notebooks * type test_video * more typing * more typing * more typing * add changeset * more typing * more * more * files * ds * ds * plots * audio push * annotated * utils * routes * iface * server * restore * external * dep * components * chat interface * fixes * blocks * blocks * blocks * blocks * fixes * fixes * format * fix --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
8 lines
188 B
Python
8 lines
188 B
Python
import gradio as gr
|
|
|
|
|
|
class TestButton:
|
|
def test_postprocess(self):
|
|
assert gr.Button().postprocess("5") == "5"
|
|
assert gr.Button().postprocess(5) == "5" # type: ignore
|