Skip to content

Minor Extendable Refactor

Choose a tag to compare

@immijimmi immijimmi released this 05 Sep 11:52
· 18 commits to master since this release
  • Extendable.extensions is now a class property (meaning it can now be read on the class itself rather than only on an instance)
  • Extendable.extensions now returns a tuple rather than a frozenset, so that the order in which extensions were applied is preserved and extensions can be applied multiple times if necessary
  • Extendable.with_extensions() has been improved in various minor ways; primarily, the returned class's name attribute now indicates the base class and what extensions were applied
  • Added tests for new functionality
  • Minor edits to comments and docstrings

This release features breaking changes, as some of the values being returned by Extendable are now slightly different as a result of the above.