diff options
author | Matti Picus <matti.picus@gmail.com> | 2021-06-22 23:14:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 23:14:37 +0300 |
commit | 001c1ca1c507ca18aa22742a5ca0b426a3b877e2 (patch) | |
tree | 8b3550c2bd694cee4dbb710fc37b4044e3f9850a /doc/source/conf.py | |
parent | 6d4b2a7d4f6f149846c054f1c62e3357062eddbb (diff) | |
parent | a525954b7e1f6bb8237e7d491a9c1d50837eeac7 (diff) | |
download | numpy-001c1ca1c507ca18aa22742a5ca0b426a3b877e2.tar.gz |
Merge pull request #19298 from BvB93/c_intp_docs
DOC: Add documentation for `np.ctypeslib.c_intp`
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 a49074922..59e1e9b8d 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -435,6 +435,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: |