If object has a getdoc() method, override its normal docstring.
Unindent custom docstrings of objects.
Could you add a short test that validates this behavior? We just need to check:
Then we're good to go. Thanks!
Add test for oinspect.getdoc
Added a test.
@takluyver - do you want to add a test for the second case? Which I think is: getdoc is defined but returns None.
Test for getdoc() returning None.
Great, this was the last missing piece. Merging now.