Marshmallow-dataclass

Latest version: v8.7.1

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

Scan your dependencies

Page 4 of 7

8.4.2

- Compatibility with python3.9 lowercase type annotations. [See 136](https://github.com/lovasoa/marshmallow_dataclass/issues/136)

8.4.1

- Fix compatibility with older python versions.

8.4.0

- Add support for multiple [`collections.abc`](https://docs.python.org/3/library/collections.abc.html) containers :
- Mapping
- Sequence
- Set
- FrozenSet
- (see [131](https://github.com/lovasoa/marshmallow_dataclass/issues/131))

You can now write :

python3
from marshmallow_dataclass import dataclass
from collections.abc import Sequence, Mapping, Set

dataclass
class FrozenData:
seq: Sequence[int] like List[int], but immutable
map: Mapping[str, int] like Dict[str, int], but immutable
set: Set[int] like List[int], but unordered

f: FrozenData = FrozenData.Schema().load({"seq":[1], "map":{"x":2}, "set":[2]})
print(f.seq[0]) -> 1
print(f.map["x"]) -> 2
print(2 in f.set) -> True

8.3.2

- Fix package license field

8.3.1

- Allow `None` in Optional fields. See [108](https://github.com/lovasoa/marshmallow_dataclass/issues/108)

8.3.0

- Export pre-built Email and Url types. See [115](https://github.com/lovasoa/marshmallow_dataclass/pull/115)

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.