Serdataclasses

Latest version: v0.8.0

Safety actively analyzes 641872 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.4.0

Added

- Keywords and classifiers to `pyproject.toml`.

Changed

- Lists and Dicts in `deserialize.load` have been generalized into the generic protocols `typing.Sequence` and `typing.Mapping`.
- `typing.get_origin` and `typing.get_args` are now call called only once in the Deserialize constructor.

0.3.0

Added

- Support for `typing.TypedDict`
- `typesafe_constructor` argument to `deserialize.load` to optionally ensure type safety at the top-level. It defaults to True.

0.2.0

Added

- This `CHANGELOG.md`
- `deserialize.load`, `deserialize.DeserializeError`, and `serialize.dump` are imported at the top-level.
- Support for NamedTuple and Dict
- Add `py.typed` to package (PEP 561)
- `typedefs.NoResult` and `typedefs.Possible`. This is a bespoke `typing.Optional` implementation because `None` is a value we actually care about.

Changed

- `deserialize.deserialize` changed to `deserialize.load`
- `serialize.serialize` changed to `serialize.dump`
- The `deserialize._deserialize` function is replaced by `deserialize.Deserialize`.
- Removed "vaporware" designation: this is now a real project.

Fixed

- `mypy`, `pylint`, `black`, `toml-sort`, and `isort` all pass.

Removed

- Recursive types. I may add them again in the future when `mypy` supports them, but given the sketchyness of the type system at present, I'm not confident that they'll actually help

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.