lhrhost.util.interfaces module

Support for specifying interface classes.

Summary

Classes

InterfaceClass

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

mro() list

return a type’s method resolution order

register(subclass)

Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.