in src/fi_wrapper.cpp [169:175]
virtual size_t operator()(const nb::object& a) const {
Py_hash_t result = PyObject_Hash(a.ptr());
if (result == -1) {
throw nb::type_error("Could not compute hash value of object");
}
return static_cast<size_t>(result);
}