pytools.sphinx.AutodocProcessDocstring#
- class pytools.sphinx.AutodocProcessDocstring(*args, **kwargs)[source]#
An autodoc processor for docstrings.
- Bases
- Metaclasses
Method summary
Register this callback to be called when
event
is emitted.Disconnect this callback from its Sphinx application.
Process an event.
Attribute summary
The Sphinx application this callback is connected to.
"autodoc-process-docstring"
The listener ID of this callback.
Definitions
- connect(app, priority=None)#
Register this callback to be called when
event
is emitted.Registered callbacks will be invoked on event in the order of priority and registration. The priority is ascending order.
- Parameters
- Return type
- Returns
a listener ID that can be used as an argument to
disconnect()
.
- abstract process(app, what, name, obj, options, lines)[source]#
Process an event.
- Parameters
app (
Any
) – the Sphinx application objectwhat (
str
) – the type of the object which the docstring belongs to (one of “module”, “class”, “exception”, “function”, “method”, “attribute”)name (
str
) – the fully qualified name of the objectobj (
object
) – the object itselfoptions (
object
) – the options given to the directive: an object with attributesinherited_members
,undoc_members
,show_inheritance
andnoindex
that areTrue
if the flag option of same name was given to the auto directive
- Return type
- property app: Optional[Any]#
The Sphinx application this callback is connected to.