Skip to content

Commit 50c38ff

Browse files
jackaldenryanclaude
andcommitted
Fix mypy no-any-return in auto scope format handler
Annotate the getattr result so mypy knows context is str | None. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 84d3802 commit 50c38ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integrations/python/zep_adk/src/zep_adk/graph_search_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def _format_results(result: Any, scope: str) -> str:
299299
if scope == "auto":
300300
# Auto scope returns a pre-formatted context string in result.context
301301
# rather than populating the individual edges/nodes/episodes lists.
302-
context = getattr(result, "context", None)
302+
context: str | None = getattr(result, "context", None)
303303
if context and context.strip():
304304
return context.strip()
305305
elif scope == "edges" and result.edges:

0 commit comments

Comments
 (0)