From 2baa4a9c842b89dcaf1f84919d7c60eceb6bccc4 Mon Sep 17 00:00:00 2001 From: Luke Parke <5702154+LukasParke@users.noreply.github.com> Date: Wed, 21 Oct 2026 17:48:12 +0000 Subject: [PATCH] docs: make Resource Management README snippet valid Python The `with` / `async with` blocks in the Resource Management example had only a comment as their body, so copying the snippet raised IndentationError. Add a `pass` statement to each block in README.md and the committed README-PYPI.md copy. Fixes #589 Co-Authored-By: Claude Opus 5.5 (1M context) --- README-PYPI.md | 2 ++ README.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README-PYPI.md b/README-PYPI.md index baf0dde05..6c38711bd 100644 --- a/README-PYPI.md +++ b/README-PYPI.md @@ -306,6 +306,7 @@ def main(): api_key=os.getenv("OPENROUTER_API_KEY", ""), ) as open_router: # Rest of application here... + pass # Or when using async: @@ -318,6 +319,7 @@ async def amain(): api_key=os.getenv("OPENROUTER_API_KEY", ""), ) as open_router: # Rest of application here... + pass ``` diff --git a/README.md b/README.md index 2384a8394..7c1dc505a 100644 --- a/README.md +++ b/README.md @@ -306,6 +306,7 @@ def main(): api_key=os.getenv("OPENROUTER_API_KEY", ""), ) as open_router: # Rest of application here... + pass # Or when using async: @@ -318,6 +319,7 @@ async def amain(): api_key=os.getenv("OPENROUTER_API_KEY", ""), ) as open_router: # Rest of application here... + pass ```