Fixed #176 -- Added Request imports to auth snippets. - #183
Conversation
Greptile SummaryAdded the missing
|
| Filename | Overview |
|---|---|
| docs/en/dev/actions.md | Adds Request to the approval example’s Quater imports, matching its authenticator annotation. |
| docs/en/dev/mcp.md | Adds Request to the approval-protected MCP tool example’s imports. |
| docs/en/dev/testing.md | Adds Request to the MCP testing example’s imports. |
Reviews (4): Last reviewed commit: "Fixed #176 -- Added Request imports to a..." | Re-trigger Greptile
|
Hi @pollychen-lab , Thanks for this PR. Can you please make sure the commit msg and PR title is as per our Contributing guidelines. |
58cf1e3 to
d284488
Compare
There was a problem hiding this comment.
Why do we need changes in the package lock file? 🤔
This is unrelated.
There was a problem hiding this comment.
Why do we need changes in the package lock file? 🤔 This is unrelated.
Hi @DevilsAutumn thanks for catching that. I removed it.
d284488 to
8762a5d
Compare
DevilsAutumn
left a comment
There was a problem hiding this comment.
Looks good, thank you @pollychen-lab ! ⭐
What
Requestto the import lines in the docs snippets that annotateauthenticate(ctx: Request).Why
The affected snippets in the testing, actions, and MCP docs use
Requestin the authenticator signature but did not import it, so copying them as-is would raiseNameError.Validation
python3snippet consistency check for nearbyRequestimportsuv run --no-sync python scripts/generate_reference.py --checkuv run --no-sync ruff check .uv run --no-sync pytest -qgit diff --checkFixes #176