-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
For example, I want to document the following:
#!python
# MyModule.py
class D(object):
"""Descriptor class
"""
def __get__(self, instance, owner):
return 1
def __set__(self, instance, value):
pass
class A(object):
"""My Class
"""
#: Descriptor attribute
abc = D()
And I create the following RST file:
#!
.. module:: MyModule
.. autoclass:: A
:members:
.. autosummary::
abc
autosummary
creates table with the following description for attribute abc
:
int(x=0) -> int or long
But in this case I want to see:
Descriptor attribute
- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1444
- Originally reported by: Evgeny Prilepin
- Originally created at: 2014-04-09T09:29:16.620