Tri.declarative

Latest version: v5.7.0

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

Scan your dependencies

Page 7 of 7

0.24.0

~~~~~~~~~~~~~~~~~~~

* Fix bug in `setdefault_path` tripping up on key ordering.

* Dropped `namespace_factory` keyword argument to `setdefaults_path` not likely
ever beeing used.

0.23.0

~~~~~~~~~~~~~~~~~~~

* `setdefaults_path` now accepts multiple default dicts. (To simplify the pattern of
shortcuts in tri.form, tri.query and tri.table where we now will end up with:
`new_kwargs = setdefaults_path(Struct(), kwargs, dict(....))`

0.22.0

~~~~~~~~~~~~~~~~~~~

* `sort_after()` should produce an error when attempting to sort after non-existant keys

* Tweaked namespace merge in `setdefaults_path`

0.21.0

~~~~~~~~~~~~~~~~~~~

* Fix corner case in collect_namespaces where one parameter imply a value and
others imply a namespace.

* Added `setdefaults_path` helper with `__` namespace traversal.

0.20.0

~~~~~~~~~~~~~~~~~~~

* Added `assert_kwargs_not_empty` convenience function.

* Improved documentation.

0.19.0

~~~~~~~~~~~~~~~~~~~

* When making instances of a class decorated with `declarative` the declared
values are copied (shallow) before being passed to `__init__`.

* Instances will get an own copy of the declared attributes written to their
`__dict__`

Page 7 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.