diff options
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r-- | doc/source/conf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index edf937e3c..874b5e96a 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -436,6 +436,11 @@ def linkcode_resolve(domain, info): if not fn: return None + # Ignore re-exports as their source files are not within the numpy repo + module = inspect.getmodule(obj) + if module is not None and not module.__name__.startswith("numpy"): + return None + try: source, lineno = inspect.getsourcelines(obj) except Exception: |