From fb89d23aabec538a8c8cfeac3c217b6b184f59b7 Mon Sep 17 00:00:00 2001 From: Denys Moskalenko Date: Wed, 5 Nov 2025 16:21:35 +0100 Subject: [PATCH] Fix typo in variable name from `sessions_ta` to `sections_ta` for consistency for RAG documentation example --- examples/pydantic_ai_examples/rag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pydantic_ai_examples/rag.py b/examples/pydantic_ai_examples/rag.py index a71b835cfb..234659a054 100644 --- a/examples/pydantic_ai_examples/rag.py +++ b/examples/pydantic_ai_examples/rag.py @@ -115,7 +115,7 @@ async def build_search_db(): async with httpx.AsyncClient() as client: response = await client.get(DOCS_JSON) response.raise_for_status() - sections = sessions_ta.validate_json(response.content) + sections = sections_ta.validate_json(response.content) openai = AsyncOpenAI() logfire.instrument_openai(openai) @@ -183,7 +183,7 @@ def embedding_content(self) -> str: return '\n\n'.join((f'path: {self.path}', f'title: {self.title}', self.content)) -sessions_ta = TypeAdapter(list[DocsSection]) +sections_ta = TypeAdapter(list[DocsSection]) # pyright: reportUnknownMemberType=false