Skip to content

Commit 31f29da

Browse files
committed
fix: satisfy mypy/ruff for dynamic tool.stream_inner_events attribute
1 parent e3f8e7c commit 31f29da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ async def run_agent(context: RunContextWrapper, input: str) -> str:
417417
return ItemHelpers.text_message_outputs(output_run.new_items)
418418

419419
tool = run_agent
420-
tool.stream_inner_events = stream_inner_events
420+
tool.stream_inner_events = stream_inner_events # type: ignore[attr-defined]
421421
return tool
422422

423423
async def get_system_prompt(self, run_context: RunContextWrapper[TContext]) -> str | None:

0 commit comments

Comments
 (0)