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

Commit58c71ea

Browse files
committed
fix remaining lines
1 parent20b913e commit58c71ea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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/_output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ async def process(
899899
output=awaitself.processor.process(
900900
tool_call.args,run_context,allow_partial=allow_partial,wrap_validation_errors=False
901901
)
902-
exceptValidationErrorase:# pragma: lax no cover
902+
exceptValidationErrorase:
903903
ifwrap_validation_errors:
904904
m=_messages.RetryPromptPart(
905905
tool_name=tool_call.tool_name,
@@ -908,7 +908,7 @@ async def process(
908908
)
909909
raiseToolRetryError(m)frome
910910
else:
911-
raise
911+
raise# pragma: no cover
912912
exceptModelRetryasr:
913913
ifwrap_validation_errors:
914914
m=_messages.RetryPromptPart(

‎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