| 352 | } // namespace |
| 353 | |
| 354 | bool IsPyUuid(PyObject* obj) { |
| 355 | PyObject* uuid_class = GetUuidClass(); |
| 356 | if (!uuid_class) return false; |
| 357 | int result = PyObject_IsInstance(obj, uuid_class); |
| 358 | if (result < 0) { |
| 359 | PyErr_Clear(); |
| 360 | return false; |
| 361 | } |
| 362 | return result != 0; |
| 363 | } |
| 364 | |
| 365 | Result<PyObject*> UuidFromBytes(std::string_view bytes, PyObject* kwargs) { |
| 366 | PyObject* uuid_class = GetUuidClass(); |
no test coverage detected