MCPcopy Create free account
hub / github.com/numpy/numpy / _dummy

Function _dummy

numpy/ctypeslib.py:67–77  ·  view source on GitHub ↗

Dummy object that raises an ImportError if ctypes is not available. Raises ------ ImportError If ctypes is not available.

(*args, **kwds)

Source from the content-addressed store, hash-verified

65
66if ctypes is None:
67 def _dummy(*args, **kwds):
68 """
69 Dummy object that raises an ImportError if ctypes is not available.
70
71 Raises
72 ------
73 ImportError
74 If ctypes is not available.
75
76 """
77 raise ImportError("ctypes is not available.")
78 load_library = _dummy
79 as_ctypes = _dummy
80 as_array = _dummy

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected