Skip to content

Commit

Permalink
partial revert to proper form of 8adef2c
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI committed Oct 12, 2023
1 parent 224d0b3 commit cc8f36e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/pybind11/detail/class.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ extern "C" inline int pybind11_meta_setattro(PyObject *obj, PyObject *name, PyOb
* to do a special case bypass for PyInstanceMethod_Types.
*/
extern "C" inline PyObject *pybind11_meta_getattro(PyObject *obj, PyObject *name) {
// Workaround! See:
// https://github.com/RobotLocomotion/drake/issues/14740
// https://github.com/pybind/pybind11/pull/2685
if (PyErr_Occurred()) {
PyErr_Clear();
}
PyObject *descr = _PyType_Lookup((PyTypeObject *) obj, name);
if (descr && PyInstanceMethod_Check(descr)) {
Py_INCREF(descr);
Expand Down

0 comments on commit cc8f36e

Please sign in to comment.