Spec-classes

Latest version: v1.4.4

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

Scan your dependencies

Page 1 of 4

1.4.3

This is a minor release the improves the behaviour of invalidation during instantiation, and wildcard invalidations from invalidating themselves. With this release, invalidation will not be enabled until after instances are fully instantiated.

1.4.2

This is a minor release with one bugfix: resolving of nested types within a class.

1.4.1

This is a minor bugfix release with one fix:

* [Fix callable attributes assigned as defaults via staticmethods.](https://github.com/matthewwardrop/spec-classes/commit/2d63efb5e65fb7f455acdeba22447e12408d1b93)

1.4.0

This release comes with a few small new features.

**New features and enhancements**:

* Added `classproperty` for `spec_property` like behavior for classmethods.
* Add support for emitting warnings when properties are overridden (use `warn_on_override` in `spec_property` or `classproperty` constructor).
* Made `MISSING` usable in type annotations, and add `EMPTY` and `SENTINEL` variations.

1.3.1

A few minor improvements:

* Improve helpfulness of error messages when errors are raised from collections during mutation.
* Suppress deprecation (and other) warnings while generating `AttrSpec`s during class bootstrapping.

**Full Changelog**: https://github.com/matthewwardrop/spec-classes/compare/v1.3.0...v1.3.1

1.3.0

This releases adds a few small features, and comes with official support for Python 3.11 and 3.12.

What's Changed
* Added official support for Python 3.11 and 3.12
* Renamed `AttrProxy` to `Alias`, and add `DeprecatedAlias`.
* Added `dataclass_transform` annotation from mypy type checking.


**Full Changelog**: https://github.com/matthewwardrop/spec-classes/compare/v1.2.6...v1.3.0

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.