Spec-classes

Latest version: v1.5.7

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

Scan your dependencies

Page 1 of 6

1.5.7

This is a minor release that improves robustness of skipping attribute default assignment when the class value is a descriptor during initial instantiation (a previously overlooked code pathway when similar changes were made in the previous release).

1.5.6

This a minor release that improves to minor things:

* `functools.cached_property` is now correctly detected as a descriptor and skipped during attribute default preparation.
* In `type_label`: `UnionType`s from Python 3.10+ are show the nested types, and both `Union` and `UnionType` types are now formatted in the Python 3.10 style: e.g. "int | str".

1.5.5

Improves the robustness of sentinel checks.

1.5.4

DO NOT USE. Introduced some sentinel related bugs.

1.5.3

This is a minor release with one minor new feature: support for passing `spec_classes.UNCHANGED` to scalar attribute transformations to skip the setting of new values; especially useful in combination with attribute preparers (where you may not want to commit a null cached value).

1.5.2

This is a minor release with one fix:

* In multithreaded contexts, it is possible to experience issues bootstrapping spec-classes due to race conditions when replacing the __new__ method.

Page 1 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.