Marshmallow-dataclass

Latest version: v8.7.1

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

Scan your dependencies

Page 6 of 7

7.5.0

- Allow the use of BaseSchema to specify a custom mapping from python types to marshmallow fields
([72](https://github.com/lovasoa/marshmallow_dataclass/pull/72))

7.4.0

- Cache the generated schemas
([70](https://github.com/lovasoa/marshmallow_dataclass/pull/70))

7.2.1

- Exclude the `test` subdirectory from the published package.
([59](https://github.com/lovasoa/marshmallow_dataclass/pull/59))

7.2.0

- Add mypy plugin that handles `NewType`
([50](https://github.com/lovasoa/marshmallow_dataclass/issues/50)).
Thanks [selimb](https://github.com/selimb).

7.1.1

- Fix behavior when `base_schema` is passed to a nested dataclass/schema
([52](https://github.com/lovasoa/marshmallow_dataclass/issues/52)).
Thanks [ADR-007-SoftServe](https://github.com/ADR-007-SoftServe)
for the catch and patch.

7.1.0

- Improved documentation
- The library now has more unit tests
- `dict` and `list` without type parameters are now supported

This is now supported
python
from marshmallow_dataclass import dataclass


dataclass
class Environment:
env_variables: dict


However, we do still recommend you
to always use explicit type parameters, that is:

python
from marshmallow_dataclass import dataclass
from typing import Dict


dataclass
class Environment:
env_variables: Dict[str, str]

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.