lhrhost.util.interfaces module¶
Support for specifying interface classes.
Summary¶
Classes
Metaclass that allows docstring inheritance. |
InterfaceClass¶
- class lhrhost.util.interfaces.InterfaceClass(classname, bases, cls_dict)[source]¶
Bases:
abc.ABCMeta
Metaclass that allows docstring inheritance.
References
https://github.com/sphinx-doc/sphinx/issues/3140#issuecomment-259704637
- register(subclass)¶
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.