Skip to content

Commit 8dcf07a

Browse files
committed
cosmetic changes
1 parent 7c00439 commit 8dcf07a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pydantic_ai_slim/pydantic_ai/_json_schema.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
self.is_strict_compatible = True # Can be set to False by subclasses to set `strict` on `ToolDefinition` when set not set by user explicitly
3434

3535
self.prefer_inlined_defs = prefer_inlined_defs
36-
self.simplify_nullable_unions = simplify_nullable_unions # TODO (v2): Remove this, no longer used
36+
self.simplify_nullable_unions = simplify_nullable_unions
3737

3838
self.defs: dict[str, JsonSchema] = self.schema.get('$defs', {})
3939
self.refs_stack: list[str] = []
@@ -149,7 +149,6 @@ def _handle_union(self, schema: JsonSchema, union_kind: Literal['anyOf', 'oneOf'
149149
# TODO (v2): Remove this feature, no longer used
150150
if self.simplify_nullable_unions:
151151
handled = self._simplify_nullable_union(handled)
152-
153152
if len(handled) == 1:
154153
# In this case, no need to retain the union
155154
return handled[0] | schema

0 commit comments

Comments
 (0)