| 431 | PyObject* BorrowPandasDataOffsetType() { return pandas_DateOffset; } |
| 432 | |
| 433 | Status InvalidValue(PyObject* obj, const std::string& why) { |
| 434 | auto obj_as_str = PyObject_StdStringRepr(obj); |
| 435 | return Status::Invalid("Could not convert ", std::move(obj_as_str), " with type ", |
| 436 | Py_TYPE(obj)->tp_name, ": ", why); |
| 437 | } |
| 438 | |
| 439 | Status InvalidType(PyObject* obj, const std::string& why) { |
| 440 | auto obj_as_str = PyObject_StdStringRepr(obj); |
no test coverage detected