Skip to content

Commit b834ec7

Browse files
committed
rename allow_partial -> partial
1 parent cf347c8 commit b834ec7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydantic_ai_slim/pydantic_ai/_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ async def validate(
179179
result: T,
180180
run_context: RunContext[AgentDepsT],
181181
wrap_validation_errors: bool = True,
182-
allow_partial: bool = False,
182+
partial: bool = False,
183183
) -> T:
184184
"""Validate a result but calling the function.
185185
186186
Args:
187187
result: The result data after Pydantic validation the message content.
188188
run_context: The current run context.
189189
wrap_validation_errors: If true, wrap the validation errors in a retry message.
190-
allow_partial: Whether partial validation is allowed (passed to validator if it accepts it).
190+
partial: Whether the output to validate is partial.
191191
192192
Returns:
193193
Result of either the validated result data (ok) or a retry message (Err).
@@ -198,7 +198,7 @@ async def validate(
198198
args = (result,)
199199

200200
if self._takes_partial:
201-
args = (*args, allow_partial)
201+
args = (*args, partial)
202202

203203
try:
204204
if self._is_async:

0 commit comments

Comments
 (0)