Dataclass-builder

Latest version: v1.2.0

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

Scan your dependencies

Page 1 of 2

1.2.0

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

* Add :code:`update` function to facilitate updating a dataclass or dataclass
builder from a partially completed dataclass builder.

1.1.3

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

* Switch to reST docstrings and remove paramref requirement.
* Fix bug in dataclass builders that contains a field named fields.
* Fix return type annotation of the build method.
* Fix issue `12`_ which would cause sentinel values :code:`REQUIRED`,
:code:`OPTIONAL`, and :code:`MISSING` to become incomparable after
a :code:`copy` or :code:`deepcopy`.

1.1.2

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

* Fix issue `9`_ relating to the :code:`dataclass_builder` factory function
failing to handle dataclasses which use types from the :code:`typing` module.
* Replace equality checks with identity checks where possible. This was not
only the intention of the checks but by using identity, compatibility with
types that have broken equality operators is restored.

1.1.1

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

* Fix bug where the :code:`MISSING` constant was not exported at the package
level.

1.1.0

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

* Make :code:`MISSING` constant comparable (True) with :code:`REQUIRED` and
:code:`OPTIONAL` constants.

1.0.1

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

* Fixed trove classifiers.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.