We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 983cd73 commit 7e1f006Copy full SHA for 7e1f006
docs/sphinx/conf.py
@@ -28,7 +28,6 @@
28
29
import os
30
import sys
31
-from unittest.mock import MagicMock
32
33
import sphinx_rtd_theme
34
@@ -46,14 +45,7 @@
46
45
47
# -- Module mocking ----------------------------------------------------------
48
49
-class Mock(MagicMock):
50
- @classmethod
51
- def __getattr__(cls, name):
52
- return MagicMock()
53
-
54
-# List of modules to mock
55
-MOCK_MODULES = ['nvcv', 'cvcuda']
56
-sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
+autodoc_mock_imports = ['nvcv', 'cvcuda']
57
58
# -- General configuration ---------------------------------------------------
59
0 commit comments