Use the modern lower-case Python types in the API typing information (#10196)
* changes
* add changeset
* add changeset
* add changeset
* changes
* format backend
* format
* fix imagedata
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>