Skip to content

Commit cf7ce9f

Browse files
Fix typo in docs variable name (#3343)
1 parent 9e89c22 commit cf7ce9f

File tree

1 file changed

+2
-2
lines changed
  • examples/pydantic_ai_examples

1 file changed

+2
-2
lines changed

examples/pydantic_ai_examples/rag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def build_search_db():
115115
async with httpx.AsyncClient() as client:
116116
response = await client.get(DOCS_JSON)
117117
response.raise_for_status()
118-
sections = sessions_ta.validate_json(response.content)
118+
sections = sections_ta.validate_json(response.content)
119119

120120
openai = AsyncOpenAI()
121121
logfire.instrument_openai(openai)
@@ -183,7 +183,7 @@ def embedding_content(self) -> str:
183183
return '\n\n'.join((f'path: {self.path}', f'title: {self.title}', self.content))
184184

185185

186-
sessions_ta = TypeAdapter(list[DocsSection])
186+
sections_ta = TypeAdapter(list[DocsSection])
187187

188188

189189
# pyright: reportUnknownMemberType=false

0 commit comments

Comments
 (0)