| 265 | |
| 266 | template <typename Int> |
| 267 | Status CIntFromPython(PyObject* obj, Int* out, const std::string& overflow_message) { |
| 268 | if (PyBool_Check(obj)) { |
| 269 | return Status::TypeError("Expected integer, got bool"); |
| 270 | } |
| 271 | return CIntFromPythonImpl(obj, out, overflow_message); |
| 272 | } |
| 273 | |
| 274 | template Status CIntFromPython(PyObject*, int8_t*, const std::string&); |
| 275 | template Status CIntFromPython(PyObject*, int16_t*, const std::string&); |
no test coverage detected