We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c152a commit 46e304dCopy full SHA for 46e304d
docs/source/conf.py
@@ -14,9 +14,19 @@
14
15
import sys
16
import os
17
+from unittest.mock import MagicMock
18
19
sys.path.insert(0, os.path.abspath("../.."))
20
21
+
22
+class Mock(MagicMock):
23
+ @classmethod
24
+ def __getattr__(cls, name):
25
+ return Mock()
26
27
+MOCK_MODULES = [ 'numpy', 'scipy']
28
+sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
29
30
# If extensions (or modules to document with autodoc) are in another directory,
31
# add these directories to sys.path here. If the directory is relative to the
32
# documentation root, use os.path.abspath to make it absolute, like shown here.
0 commit comments