This is another case where wider-than-function scope references in sphinx-formatted docstrings would be helpful.  Then you could just add a ref link to https://github.com/joergdietrich/scipy/blob/k-sample-AD/scipy/stats/morestats.py#L1267