Module-utilities

Latest version: v0.9.0

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

Scan your dependencies

Page 1 of 2

0.9.0

Changed

- Revert to TypeVar `S` being invariant. This leads to some issues with
`cached.prop` decorator. However, the use of covariant `TypeVar` was a hack.
Instead, it is better in these cases to decorate with `property` on top of
`cached.meth`. mypy/pyright deal with `property` in a special way.
- To better work with the above, single parameter methods are caached using only
the method name, and no parameters.

0.8.0

Changed

- Moved submodule `_typing` to `typing` (i.e., publicly accessible).
- Made TypeVar `S` covariant. This fixes issues with subclassing overrides.

0.7.0

Changed

- Simplified cached.prop by using (new) CachedProperty class.

0.6.0

Added

- Now include module `docinhert` to interface with
[docstring-inheritance](https://github.com/AntoineD/docstring-inheritance)
- Fully support mypy and pyright type checking.

0.5.0

Added

- Add `_prepend` option to docfiller. Default behavior is now to append current
docstring to templates.

0.4.0

Added

- Package now available on conda-forge

Changed

- Properly vendor numpydocs and include pointer to license

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.