You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forwarding keyword arguments looks nice but makes the function typing
much weaker. Any typos in the keyword arguments taken by the function
end up undetected until they reach `marshmallow.Schema.load()` and then
they give an obscure error about some unexpected argument that was
never the intention to forward to `marshmallow`.
Signed-off-by: Leandro Lucarella <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,10 @@
26
26
+ The class is now immutable.
27
27
+ The constructor now accepts only keyword arguments.
28
28
29
-
*`load_config()`: the `base_schema` argument is now keyword-only.
29
+
*`load_config()`:
30
+
31
+
+ The `base_schema` argument is now keyword-only.
32
+
+ The arguments forwarded to `marshmallow.Schema.load()` now must be passed explicitly via the `marshmallow_load_kwargs` argument, as a `dict` to improve the type-checking.
0 commit comments