diff options
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/conf.py | 5 | ||||
-rw-r--r-- | doc/source/reference/routines.ctypeslib.rst | 7 |
2 files changed, 12 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: diff --git a/doc/source/reference/routines.ctypeslib.rst b/doc/source/reference/routines.ctypeslib.rst index 3a059f5d9..c6127ca64 100644 --- a/doc/source/reference/routines.ctypeslib.rst +++ b/doc/source/reference/routines.ctypeslib.rst @@ -11,3 +11,10 @@ C-Types Foreign Function Interface (:mod:`numpy.ctypeslib`) .. autofunction:: as_ctypes_type .. autofunction:: load_library .. autofunction:: ndpointer + +.. class:: c_intp + + A `ctypes` signed integer type of the same size as `numpy.intp`. + + Depending on the platform, it can be an alias for either `~ctypes.c_int`, + `~ctypes.c_long` or `~ctypes.c_longlong`. |