Closed dkirkby closed 8 years ago
The Mock
being referred to here is defined in docs/conf.py
:
from mock import Mock as MagicMock
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()
def __mul__(self, other):
return Mock()
def __rmul__(self, other):
return Mock()
def __pow__(self, other):
return Mock()
def __div__(self, other):
return Mock()
I'm not sure why these arithmetic operators are defined in the first place, but it looks like adding support for +
might fix this problem:
def __add__(self, other):
return Mock()
def __radd__(self, other):
return Mock()
The API documentation at bossdata.readthedocs.org is empty for the meta, path, plate, and spec modules. However, these build fine locally with:
Issue #13 was a similar problem that was fixed by adding external imports to the napoleon config file. In this case the RTD logs indicate a new problem:
All of the affected modules import
spec
, which is raising an exception when imported by sphinx.