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
load accepts Sequence rather than Iterable (rejects generators) (#2795)
* load accepts Sequence rather than Iterable (rejects generators)
* Fix handling of strings
* Fix typing
* Use TypeGuards and fix type issues
* Update changelog
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,9 @@ Other changes:
20
20
- Typing: `Field <marshmallow.fields.Field>` is now a generic type with a type argument for the internal value type.
21
21
- `marshmallow.fields.UUID` no longer subclasses `marshmallow.fields.String`.
22
22
- *Backwards-incompatible*: Use `datetime.date.fromisoformat`, `datetime.time.fromisoformat`, and `datetime.datetime.fromisoformat` from the standard library to deserialize dates, times and datetimes (:pr:`2078`).
23
+
- `marshmallow.Schema.load` no longer silently fails to call schema validators when a generator is passed (:issue:`1898`).
24
+
The typing of `data` is also updated to be more accurate.
0 commit comments