elpy
elpy copied to clipboard
Fallback to shell 'help()' for docstring when jedi fails
PR Summary
Follow #1507.
When jedi fails to provide documentation, use the shell help() function to try to get the docstring.
PR checklist
Please make sure that the following things have been addressed (and check the relevant checkboxes):
- [x] Commits respect our guidelines
- [x] Tests are passing properly (see here on how to run Elpy's tests)
For new features only:
- [ ] Tests has been added to cover the change
- [ ] The documentation has been updated
Coverage decreased (-0.3%) to 85.155% when pulling 925756f5b8990b9272e0de73bab808cf22355b4f on galaunay:Gather-docstring-from-shell into 2d4a968e8fe04e6ad099c526349633105a38f608 on jorgenschaefer:master.
Note to myself: pydoc seems to be confused from time to time with python2.7. Maybe we should provide this only for python > 3 ?