diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 0c7da1ab..145bc2b3 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -300,7 +300,7 @@ protected: template <> class type_caster { public: - bool load(PyObject *, bool) { return true; } + bool load(PyObject *, bool) { return false; } static PyObject *cast(void_type, return_value_policy /* policy */, PyObject * /* parent */) { Py_INCREF(Py_None); return Py_None;