FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: fix AsyncGenerator annotation in README example by jayfeng7 · Pull Request #320 · vercel-labs/ai-python · GitHub

docs: fix AsyncGenerator annotation in README example - #320

Open
jayfeng7 wants to merge 1 commit into
vercel-labs:mainfrom
jayfeng7:docs/readme-asyncgenerator-import
Open

jayfeng7 wants to merge 1 commit into
vercel-labs:mainfrom
jayfeng7:docs/readme-asyncgenerator-import

Conversation

jayfeng7 commented Oct 3, 2026

Copy link
Copy Markdown

The custom-agent example uses AsyncGenerator without importing it, which raises NameError when defining CustomAgent. Add the import and specify None as the send type so the annotation also evaluates on Python 3.12.

Validation:

  • Reproduced the missing-import error and the single-type-argument error, then successfully defined CustomAgent after the change on Python 3.12, without model/API calls.
  • Checked Markdown structure and git diff --check.
  • Passed uv run --no-sync ruff format --check src tests examples, uv run --no-sync ruff check src tests examples, uv run --no-sync mypy, and uv run --no-sync ty check (example dependencies installed locally).

Suggested changelog label: internal (documentation only).

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown

@jayfeng7 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL