On 5/26/20 11:06 PM, Scott Talbert wrote: > It looks like it's a bug in sphinx.
I'm suspecting the same - and I was also not able to reproduce it in a local installation (pip-installed sphinx trying to match the dependencies and versions). However, it seems the culprit is at "case/mock.py":51: call = mock.call In case a new upload of sphinx does not land in time, perhaps a workaround along the lines of: diff --git a/docs/reference/case.mock.rst b/docs/reference/case.mock.rst index 1a28a5c..2b6562c 100644 --- a/docs/reference/case.mock.rst +++ b/docs/reference/case.mock.rst @@ -9,3 +9,4 @@ .. automodule:: case.mock :members: :undoc-members: + :exclude-members: call might be acceptable? While not the ideal solution, the upstream generated docs [1] end up including the docstring from "unittest.mock._Call" [2] for that member, which might not provide too much relevant info for end users anyway (and the inheritance from "tuple" might be related to the original error). [1] https://case.readthedocs.io/en/latest/reference/case.mock.html#case.mock.call [2] https://github.com/python/cpython/blob/3.8/Lib/unittest/mock.py#L2352 -- Diego M. Rodriguez
signature.asc
Description: OpenPGP digital signature