A mechanism for supplementing inherited interface documentation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pydoctor |
New
|
Undecided
|
Unassigned |
Bug Description
It is often useful to document the unique features of an interface
implementation eg
* incompatibilities
* side effects
* extra arguments which are not defined in the interface
The current work around is to write implementation specific
documentation and include an @see link to the interface.
But it would be more convenient to be able to view the full interface
documentation directly (including parameter and return type) --
without having to navigate away to the interface API.
How hard would it be to take the implementation docstring and merge it
with the interface docstring.
<implementation docstring body>
<interface docstring body>
<interface epydoc>
<implementation epydoc>
One problem is that there are many cases in Twisted, where the
interface documentation has simply been duplicated (often
inaccurately) in the implementation.
Could we identify such cases by the fact that the implementation
contained epydoc parameter names that match the interface epydoc.
And in this case, discard the implementation docstring in favour of
the interface docstring.
This all stems from the following #twisted-dev conversation about a proposed
change to twistedchecker:
* https:/
That all sounds perfectly possible, although I expect some things will come out looking a little odd. I'll try to have a play and see what it looks like.