Module Contents#



Metaclass for defining Abstract Base Classes (ABCs).



class slidge.core.mixins.base.MetaBase[source]#

Bases: abc.ABCMeta

Metaclass for defining Abstract Base Classes (ABCs).

Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as ‘virtual subclasses’ – these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).

class slidge.core.mixins.base.Base[source]#
session: slidge.core.session.BaseSession[source]#
xmpp: slidge.core.gateway.BaseGateway[source]#
user: slidge.util.db.GatewayUser[source]#
jid: slixmpp.JID[source]#
name: str[source]#
class slidge.core.mixins.base.BaseSender[source]#

Bases: Base

abstract _send(stanza, **send_kwargs)[source]#

stanza (Union[slixmpp.Message, slixmpp.Presence]) –