Datafiles

Latest version: v2.3.3

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

Scan your dependencies

Page 6 of 8

0.11.1

- Fixed error message for `Dict` annotations lacking types.

0.11

- Added support to treat `Mapping` type annotations as dictionaries.
- Fixed handling of default values for `dataclass` attributes.
- Added `MINIMIZE_LIST_DIFFS` setting to control the semantic representation of empty lists.

0.10

- Added support for recursively matching arbitrary depth paths of files.
- Fixed `AttributeError` when attempting to load malformed YAML files.

0.9

- Fixed serialization of optional nested dataclasses with a value of `None`.
- Fixed preservation of comments on nested dataclass attributes.
- Added support for using `enum.Enum` subclasses as type annotations.

0.8.1

- Fixed loading of `Missing` nested dataclasses attributes.

0.8

- Updated the `datafile(...)` decorator to be used as a drop-in replacement for `dataclass(...)`.
- Added support for loading unlimited levels of nested objects.

Page 6 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.