refactor some parts of docstrings.py
refactor some parts of docstrings.py

flurischt/jedi,WoLpH/jedi,jonashaag/jedi,mfussenegger/jedi,jonashaag/jedi,mfussenegger/jedi,WoLpH/jedi,dwillmer/jedi,tjwei/jedi,dwillmer/jedi,flurischt/jedi,tjwei/jedi