#9976: Decorated functions/methods have generic signature in documentation
--------------------------------+-------------------------------------------
Reporter: jsrn | Owner: mvngu
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: documentation | Keywords: sphinx, documentation, cython
inspection
Author: jsrn, Simon King | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by jsrn):
Ok, sounds fine. I'm trying to review your patch right now.
Question: On line 1064 of sage_autodoc.py after your patch, you remove
self and cls if they are there. Why do you use that check:
{{{
if argspec is not None and argspec[0] and argspec[0][0] in ('cls',
'self'):
}}}
instead of
{{{
if isclassinstance(obj) or inspect.isclass(obj):
}}}
which you have included, commented out, on the line above, and which you
used on line 819 for something similar?
I'll look into some doctests...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9976#comment:77>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.