Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Price <[email protected]>
  • Loading branch information
milesp-nvidia authored Sep 18, 2024
1 parent 983cd73 commit c88b4ab
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import os
import sys
from unittest.mock import MagicMock

import sphinx_rtd_theme

Expand All @@ -46,14 +45,7 @@

# -- Module mocking ----------------------------------------------------------

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return MagicMock()

# List of modules to mock
MOCK_MODULES = ['nvcv', 'cvcuda']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
autodoc_mock_imports = ['nvcv', 'cvcuda']

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit c88b4ab

Please sign in to comment.