Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9af76fb

Browse files
committed
fix remaining lines
1 parent20b913e commit9af76fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎pydantic_ai_slim/pydantic_ai/_agent_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async def _reevaluate_dynamic_prompts(
224224
fori,partinenumerate(msg.parts):
225225
ifisinstance(part,_messages.SystemPromptPart)andpart.dynamic_ref:
226226
# Look up the runner by its ref
227-
ifrunner:=self.system_prompt_dynamic_functions.get(# pragma: no cover
227+
ifrunner:=self.system_prompt_dynamic_functions.get(# pragma:laxno cover
228228
part.dynamic_ref
229229
):
230230
updated_part_content=awaitrunner.run(run_context)

‎pydantic_ai_slim/pydantic_ai/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ def decorator(
12741274
)->_system_prompt.SystemPromptFunc[AgentDepsT]:
12751275
runner=_system_prompt.SystemPromptRunner[AgentDepsT](func_,dynamic=dynamic)
12761276
self._system_prompt_functions.append(runner)
1277-
ifdynamic:# pragma: no cover
1277+
ifdynamic:
12781278
self._system_prompt_dynamic_functions[func_.__qualname__]=runner
12791279
returnfunc_
12801280

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp