Sphinx doesn't correctly process decorated class methods

132 views
Skip to first unread message

zpcspm

unread,
May 31, 2011, 4:30:09 AM5/31/11
to sphinx-dev
I am using Sphinx-1.0.6 and I have an autoclass block with explicit
method names declared in :members:

Some class methods are decorated.

For those class methods, Sphinx fails to detect their signature and
docstring, they look like this in the docs:

method_name(*args, **kw)
doc

I searched the group first, but the related results seem to be
reasonably old.

Gilles Lenfant

unread,
Jul 17, 2011, 10:45:49 AM7/17/11
to sphin...@googlegroups.com
Hi,

I didn't try this solution but I think you fell in the same pitfall as me in another situation. In other words, decorated functions take some features from the decorator and screws somehow the decorated function introspection. This recipe should help you.


Reply all
Reply to author
Forward
0 new messages