Sphinx autodoc gets stuck on random.choice() using mock
问题 This is a continuation of a question I originally asked in this post: random.choice error due to np.linspace and np.logspace In this question, I have stripped down the problem to the bare minimum and was able to reproduce the problem where Sphinx is hanging up on the random.choice() function. Here is the Python code in the file randor_test.py; it runs in PyCharm: import random import numpy as np def rand_test(svr_C, svr_gamma): """This is test docstring #. item one #. item two """ ml_params =