我有一个类似于以下的 Python 类,其文档字符串旨在由Sphinx转换为文档:
class Direction(object):
    """
    A direction in which movement can be made.
    """
    def __init__(self):
        self._name = None
    @property
    def name(self):
        """
        The unique name of the direction.
        :return: The direction name
        :rtype: string
        """
        return self._name
    @name.setter
    def name(self, value):
        """
        Sets the direction name.
        :param string value: The direction name
        """
        self._name = value
Sphinx 输出如下所示:
类 Direction (name) 可以进行移动的方向。
name 方向的唯一名称。
返回:方向名称
返回类型:字符串
就目前而言这很好,但请注意完全没有关于namesetter 的任何信息。
有没有办法让 Sphinx 为属性设置器生成文档?