Skip to content

Releases: usnistgov/module-utilities

v0.9.0

27 Sep 15:29
Compare
Choose a tag to compare

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.

Full Changelog: v0.8.1...v0.9.0

v0.8.1

27 Sep 15:29
Compare
Choose a tag to compare

Full Changelog: v0.8.0...v0.8.1

v0.8.0

27 Sep 15:29
Compare
Choose a tag to compare

Changed

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

Full Changelog: v0.7.0...v0.8.0

v0.7.0

27 Sep 15:29
Compare
Choose a tag to compare

Changed

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

Full Changelog: v0.6.0...v0.7.0

v0.6.0

27 Sep 15:29
Compare
Choose a tag to compare

Added

  • Now include module docinhert to interface with
    docstring-inheritance
  • Fully support mypy and pyright type checking.

Full Changelog: v0.5.0...v0.6.0

v0.5.0

27 Sep 15:29
Compare
Choose a tag to compare

Added

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

Full Changelog: v0.4.0...v0.5.0

v0.4.0

27 Sep 15:29
Compare
Choose a tag to compare

Package now available on conda-forge

Full Changelog: v0.3.1...v0.4.0

v0.3.1

27 Sep 15:29
Compare
Choose a tag to compare

Full Changelog: v0.3.0...v0.3.1

v0.3.0

27 Sep 15:29
Compare
Choose a tag to compare
  • Added DocFiller.assign_param to more easily add a new parameter.

Full Changelog: v0.2.0...v0.3.0

v0.2.0

27 Sep 15:29
Compare
Choose a tag to compare

Added method assign_keys to DocFiller.

Full Changelog: v0.1.0...v0.2.0