def handle_signature(self, signature, signode):
"""Prefix signature with the proper annotation, then render it using
_render_signature.
:returns: the name given to the resulting node, if any
"""
if self.annotation:
annotation = self.annotation + ' '
signode += addnodes.desc_annotation(annotation, annotation)
self._render_signature(signature, signode)
return self._name_from_signature(signature)
评论列表
文章目录