Structured-data

Latest version: v0.13.0

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

Scan your dependencies

Page 1 of 3

0.13.0

-------------------

Added
~~~~~

- ``match.function`` and ``match.Property`` decorators for Haskell-style function definitions.

Fixed
~~~~~
- Accessing data descriptors on ``Sum`` and ``Product`` instances.

0.12.1

-------------------

Added
~~~~~

- Product classes can make use of custom ``__new__``.

0.12.0

-------------------

Added
~~~~~

- Product base class

Changed
~~~~~~~

- Improved documentation of some match constructors.
- Exposed ``MatchDict`` type, so it gets documented.
- Converted the ``adt`` decorator to a ``Sum`` base class.

Removed
~~~~~~~

- ``Guard`` type removed in favor of user-defined validation functions.

0.11.1

-------------------

Changed
~~~~~~~

- Restore proper behavior of ``__new__`` overrides.

0.11.0

-------------------

Changed
~~~~~~~

- Consider all overrides of checked dunder methods, not just those in the decorated class.

0.10.1

-------------------

Added
~~~~~

- A non-ergonomic but simple wrapper class for use by the typing plugin. It's not available to runtime code.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.