Skip to content

Commit

Permalink
Revert "Add handling of return_value_policy::_clif_automatic in typ…
Browse files Browse the repository at this point in the history
…e_caster_pyobject_ptr.h (backported from google/pybind11clif#30021)"

This reverts commit bd69f7a.
  • Loading branch information
Ralf W. Grosse-Kunstleve authored and rwgk committed Jun 11, 2024
1 parent 21d81fc commit 7d8e6ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/pybind11/type_caster_pyobject_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ class type_caster<PyObject> {
raise_from(PyExc_SystemError, "src != nullptr but PyErr_Occurred()");
throw error_already_set();
}
if (policy == return_value_policy::take_ownership
|| policy == return_value_policy::_clif_automatic) {
if (policy == return_value_policy::take_ownership) {
return src;
}
if (policy == return_value_policy::reference
Expand Down

0 comments on commit 7d8e6ea

Please sign in to comment.