| 454 | PyObject* BorrowPandasDataOffsetType() { return pandas_DateOffset; } |
| 455 | |
| 456 | Status InvalidValue(PyObject* obj, const std::string& why) { |
| 457 | auto obj_as_str = PyObject_StdStringRepr(obj); |
| 458 | return Status::Invalid("Could not convert ", std::move(obj_as_str), " with type ", |
| 459 | Py_TYPE(obj)->tp_name, ": ", why); |
| 460 | } |
| 461 | |
| 462 | Status InvalidType(PyObject* obj, const std::string& why) { |
| 463 | auto obj_as_str = PyObject_StdStringRepr(obj); |
no test coverage detected