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

Function PyFloatScalar_Check

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

Source from the content-addressed store, hash-verified

156namespace internal {
157
158inline bool PyFloatScalar_Check(PyObject* obj) {
159 if (has_numpy()) {
160 return PyFloat_Check(obj) || PyArray_IsScalar(obj, Floating);
161 } else {
162 return PyFloat_Check(obj);
163 }
164}
165
166inline bool PyIntScalar_Check(PyObject* obj) {
167 if (has_numpy()) {

Callers 2

IsPyFloatFunction · 0.85
ConvertMethod · 0.85

Calls 1

has_numpyFunction · 0.85

Tested by

no test coverage detected