DecoratorBaseMeta¶
-
class
utilipy.decorators.baseclass.DecoratorBaseMeta(name: str, bases: tuple, dct: dict)[source]¶ Bases:
typeMeta-class for decorators.
This metaclass is pretty specific for DecoratorBaseClass and should probably not be used in other contexts.
This metaclass:
creates
__kwdefaults__, copying from__base_kwdefaults__.makes a named-tuple class for read-only versions of
__kwdefaults__stores the original class and call docs
formats the class docstrings with the
__kwdefaults__
__init__ method for MetaClass.
Sets up docstring inheritance.
References
The docstring inheritance method is modified from astropy’s InheritDocstrings metaclass
Todo
replace with better doc_inheritance from custom_inherit