Skip to content

Commit e220710

Browse files
committed
tweak comments
1 parent 47f1c15 commit e220710

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/pydantic_core/_pydantic_core.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class SchemaValidator:
111111
[`info.context`][pydantic_core.core_schema.ValidationInfo.context].
112112
self_instance: An instance of a model set attributes on from validation, this is used when running
113113
validation from the `__init__` method of a model.
114-
allow_partial: Whether to allow partial validation, if `True` errors in the last element of sequences
114+
allow_partial: Whether to allow partial validation; if `True` errors in the last element of sequences
115115
and mappings are ignored.
116116
117117
Raises:
@@ -164,8 +164,8 @@ class SchemaValidator:
164164
context: The context to use for validation, this is passed to functional validators as
165165
[`info.context`][pydantic_core.core_schema.ValidationInfo.context].
166166
self_instance: An instance of a model set attributes on from validation.
167-
allow_partial: Whether to allow partial validation, if `True` errors in the last element of sequences
168-
and mappings are ignored.
167+
allow_partial: Whether to allow partial validation; if `True` incomplete JSON will be parsed successfully
168+
and errors in the last element of sequences and mappings are ignored.
169169
170170
Raises:
171171
ValidationError: If validation fails or if the JSON data is invalid.
@@ -194,7 +194,7 @@ class SchemaValidator:
194194
If `None`, the value of [`CoreConfig.strict`][pydantic_core.core_schema.CoreConfig] is used.
195195
context: The context to use for validation, this is passed to functional validators as
196196
[`info.context`][pydantic_core.core_schema.ValidationInfo.context].
197-
allow_partial: Whether to allow partial validation, if `True` errors in the last element of sequences
197+
allow_partial: Whether to allow partial validation; if `True` errors in the last element of sequences
198198
and mappings are ignored.
199199
200200
Raises:

0 commit comments

Comments
 (0)