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

Function PyIntScalar_Check

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

Source from the content-addressed store, hash-verified

164}
165
166inline bool PyIntScalar_Check(PyObject* obj) {
167 if (has_numpy()) {
168 return PyLong_Check(obj) || PyArray_IsScalar(obj, Integer);
169 } else {
170 return PyLong_Check(obj);
171 }
172}
173
174inline bool PyBoolScalar_Check(PyObject* obj) {
175 if (has_numpy()) {

Callers 2

IsPyIntFunction · 0.85
ConvertMethod · 0.85

Calls 1

has_numpyFunction · 0.85

Tested by

no test coverage detected