Skip to content

Commit 1b2ab4f

Browse files
committed
Normalize the default for partial in Schema to None
1 parent 8197492 commit 1b2ab4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/marshmallow/schema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def __init__(
374374
context: dict | None = None,
375375
load_only: types.StrSequenceOrSet = (),
376376
dump_only: types.StrSequenceOrSet = (),
377-
partial: bool | types.StrSequenceOrSet = False,
377+
partial: bool | types.StrSequenceOrSet | None = None,
378378
unknown: str | None = None,
379379
):
380380
# Raise error if only or exclude is passed as string, not list of strings
@@ -590,7 +590,7 @@ def _deserialize(
590590
*,
591591
error_store: ErrorStore,
592592
many: bool = False,
593-
partial=False,
593+
partial=None,
594594
unknown=RAISE,
595595
index=None,
596596
) -> _T | list[_T]:
@@ -1089,7 +1089,7 @@ def _invoke_load_processors(
10891089
*,
10901090
many: bool,
10911091
original_data,
1092-
partial: bool | types.StrSequenceOrSet,
1092+
partial: bool | types.StrSequenceOrSet | None,
10931093
):
10941094
# This has to invert the order of the dump processors, so run the pass_many
10951095
# processors first.
@@ -1166,7 +1166,7 @@ def _invoke_schema_validators(
11661166
data,
11671167
original_data,
11681168
many: bool,
1169-
partial: bool | types.StrSequenceOrSet,
1169+
partial: bool | types.StrSequenceOrSet | None,
11701170
field_errors: bool = False,
11711171
):
11721172
for attr_name in self._hooks[(VALIDATES_SCHEMA, pass_many)]:

0 commit comments

Comments
 (0)