Skip to content

Commit 7e1f006

Browse files
Update conf.py (#203)
Signed-off-by: Miles Price <[email protected]>
1 parent 983cd73 commit 7e1f006

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

docs/sphinx/conf.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
import os
3030
import sys
31-
from unittest.mock import MagicMock
3231

3332
import sphinx_rtd_theme
3433

@@ -46,14 +45,7 @@
4645

4746
# -- Module mocking ----------------------------------------------------------
4847

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)
48+
autodoc_mock_imports = ['nvcv', 'cvcuda']
5749

5850
# -- General configuration ---------------------------------------------------
5951

0 commit comments

Comments
 (0)