MCPcopy Create free account
hub / github.com/apache/arrow / PyBoolScalar_Check

Function PyBoolScalar_Check

python/pyarrow/src/arrow/python/numpy_internal.h:174–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174inline bool PyBoolScalar_Check(PyObject* obj) {
175 if (has_numpy()) {
176 return PyBool_Check(obj) || PyArray_IsScalar(obj, Bool);
177 } else {
178 return PyBool_Check(obj);
179 }
180}
181
182static inline PyArray_Descr* GetSafeNumPyDtype(int type) {
183 if (type == NPY_DATETIME || type == NPY_TIMEDELTA) {

Callers 1

IsPyBoolFunction · 0.85

Calls 1

has_numpyFunction · 0.85

Tested by

no test coverage detected