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

Function InvalidType

python/pyarrow/src/arrow/python/helpers.cc:439–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439Status InvalidType(PyObject* obj, const std::string& why) {
440 auto obj_as_str = PyObject_StdStringRepr(obj);
441 return Status::TypeError("Could not convert ", std::move(obj_as_str), " with type ",
442 Py_TYPE(obj)->tp_name, ": ", why);
443}
444
445Status UnboxIntegerAsInt64(PyObject* obj, int64_t* out) {
446 if (PyLong_Check(obj)) {

Callers 6

AppendMethod · 0.85
InferInputKindMethod · 0.85
AppendTupleMethod · 0.85
AppendDictMethod · 0.85
AppendItemsMethod · 0.85
GetKeyValuePairMethod · 0.85

Calls 2

PyObject_StdStringReprFunction · 0.85
TypeErrorFunction · 0.50

Tested by

no test coverage detected