Reference#
Directives#
- .. py:event:: event_name#
Describes a
pydispatch.dispatch.Eventobject. This directive inherits from Sphinx’spy:methoddirective to allow representation of arguments.- :hasargs: Indicates if there are event arguments to document (bool)#
- .. py:dispatcherproperty:: property_name#
Describes a
pydispatch.properties.Propertyobject. This directive inherits from Sphinx’spy:attributedirective.- :propcls: The Property class defined (str)#
- :type: Expected type of the Property (type)#
Roles#
- :py:event:#
References a
pydispatch.dispatch.Eventobject
- :py:dispatcherproperty:#
References a
pydispatch.properties.Propertyobject
Autodoc Directives#
The following directives are added as part of the sphinx.ext.autodoc
integration.
In most cases, they would not be used directly. The automodule and
autoclass directives will use them as it would for any other
class-level documenter.
- .. autoevent::#
Document
Eventobjects as instance attributes using thepy:eventdirective. Inherited fromautoattribute.
- .. autoeventmethod::#
Document
Eventobjects as methods using thepy:eventdirective. Inherited fromautomethod.- :hasargs: Indicates if there are arguments to document (bool)#
- .. autodispatcherproperty::#
Document
Propertyobjects using thepy:dispatcherpropertydirective. Inherited fromautoattribute.- :propcls: The Property class defined (str)#
- :type: Expected type of the Property (type)#