desert
desert copied to clipboard
Deserialize to objects while staying DRY
Bumps [pex](https://github.com/pantsbuild/pex) from 2.1.44 to 2.1.103. Release notes Sourced from pex's releases. pex 2.1.103 2.1.103 This release fixes things such that pex lockfiles can be created and updated using the...
Using an optional field with any custom marshmallow field class cause desert to crash on de-serialization. E.g. a field with `b: Optional[B] = desert.ib(BField(), default=None)` does not work. ```python from...
Using type hints that is only pulled in via `if TYPE_CHECKING` constructs will fail serialization, even if the field is excluded. ```python from typing import TYPE_CHECKING, Optional import desert import...
The following test generates an Validation error when the type hint `typing.Any` is used for a field and the de-serializer is given the value of `None`. From reading the py...
Just got into this library and really like it for deserializing data into attrs objects. Is there a plan for a coming release? It appears there's a lot of new...
``` /app/env/lib/python3.9/site-packages/marshmallow/fields.py:439: RemovedInMarshmallow4Warning: The 'default' attribute of fields is deprecated. Use 'dump_default' instead. warnings.warn( /app/env/lib/python3.9/site-packages/marshmallow/fields.py:457: RemovedInMarshmallow4Warning: The 'missing' attribute of fields is deprecated. Use 'load_default' instead. warnings.warn( /app/env/lib/python3.9/site-packages/marshmallow/fields.py:448: RemovedInMarshmallow4Warning: The...
I was getting a few warning due to `default` and `missing` being removed in Marshmallow4.
https://github.com/python-desert/desert/blob/631de5f98d0f3edd3ecbab57100c5664a43bf3d5/src/desert/__init__.py#L55-L66 Below is my attempt to minimally recreate the issue and show some not-working options and output. https://mypy-play.net/?mypy=latest&python=3.8&flags=strict%2Ccheck-untyped-defs&gist=7956a372fa34375077012351364a3aec ```python import dataclasses import typing T = typing.TypeVar('T') def make_a_field_t() -> T:...
Bumps [build](https://github.com/pypa/build) from 0.5.1 to 0.7.0. Changelog Sourced from build's changelog. 0.7.0 (16-09-2021) Add build.util module with an high-level utility API (PR [#340](https://github.com/pypa/build/issues/340)_) .. _PR #340: pypa/build#340 0.6.0.post1 (05-08-2021) Fix...