Skip to content

Add Documentation Group for gr.Cache#13246

Merged
freddyaboulton merged 2 commits intomainfrom
fix-cache-docs
Apr 10, 2026
Merged

Add Documentation Group for gr.Cache#13246
freddyaboulton merged 2 commits intomainfrom
fix-cache-docs

Conversation

@freddyaboulton
Copy link
Copy Markdown
Collaborator

@freddyaboulton freddyaboulton commented Apr 10, 2026

Description

Should fix

❯ python
Python 3.12.8 (main, Jan 14 2025, 23:36:58) [Clang 19.1.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import gradio
/Users/freddyboulton/sources/gradio/client/python/gradio_client/documentation.py:108: UserWarning: Could not get documentation group for <function cache at 0x10e0f2840>: No known documentation group for module 'gradio.caching'
  warnings.warn(f"Could not get documentation group for {cls}: {exc}")
/Users/freddyboulton/sources/gradio/client/python/gradio_client/documentation.py:108: UserWarning: Could not get documentation group for <class 'gradio.caching.Cache'>: No known documentation group for module 'gradio.caching'
  warnings.warn(f"Could not get documentation group for {cls}: {exc}")
>>> ^D

AI Disclosure

We encourage the use of AI tooling in creating PRs, but the any non-trivial use of AI needs be disclosed. E.g. if you used Claude to write a first draft, you should mention that. Trivial tab-completion doesn't need to be disclosed. You should self-review all PRs, especially if they were generated with AI.

  • I used AI to... [fill here]
  • I did not use AI

🎯 PRs Should Target Issues

Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.

Not adhering to this guideline will result in the PR being closed.

Testing and Formatting Your Code

  1. PRs will only be merged if tests pass on CI. We recommend at least running the backend tests locally, please set up your Gradio environment locally and run the backed tests: bash scripts/run_backend_tests.sh

  2. Please run these bash scripts to automatically format your code: bash scripts/format_backend.sh, and (if you made any changes to non-Python files) bash scripts/format_frontend.sh

@freddyaboulton freddyaboulton added the v: patch A change that requires a patch release label Apr 10, 2026
@gradio-pr-bot
Copy link
Copy Markdown
Collaborator

gradio-pr-bot commented Apr 10, 2026

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://huggingface.co/buckets/gradio/pypi-previews/resolve/cda5e8054734d2faf9ce7af0940dc96262028647/gradio-6.11.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@cda5e8054734d2faf9ce7af0940dc96262028647#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/cda5e8054734d2faf9ce7af0940dc96262028647/gradio-client-2.1.0.tgz

@gradio-pr-bot
Copy link
Copy Markdown
Collaborator

gradio-pr-bot commented Apr 10, 2026

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio patch
gradio_client patch

  • Add Documentation Group for gr.Cache

✅ Changeset approved by @freddyaboulton

  • Maintainers can remove approval by unchecking this checkbox.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@freddyaboulton freddyaboulton requested a review from abidlabs April 10, 2026 15:58
@freddyaboulton freddyaboulton marked this pull request as ready for review April 10, 2026 15:58
Copy link
Copy Markdown
Member

@abidlabs abidlabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for missing this, thanks @freddyaboulton!

@freddyaboulton
Copy link
Copy Markdown
Collaborator Author

ty for the review @abidlabs !

@freddyaboulton freddyaboulton merged commit ff90963 into main Apr 10, 2026
25 of 26 checks passed
@freddyaboulton freddyaboulton deleted the fix-cache-docs branch April 10, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v: patch A change that requires a patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants