Skip to content

Commit 61e2ba7

Browse files
committed
Minor iwyu fix, additional comment.
1 parent ad700fe commit 61e2ba7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/pybind11/detail/init.h

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ void setstate(value_and_holder &v_h, std::pair<T, O> &&result, bool need_alias)
296296
auto d = handle(result.second);
297297
if (PyDict_Check(d.ptr()) && PyDict_Size(d.ptr()) == 0) {
298298
// Skipping setattr below, to not force use of py::dynamic_attr() for Class unnecessarily.
299+
// See PR #2972 for details.
299300
return;
300301
}
301302
setattr((PyObject *) v_h.inst, "__dict__", d);

tests/test_pickling_trampoline.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "pybind11_tests.h"
66

77
#include <memory>
8+
#include <stdexcept>
89
#include <utility>
910

1011
namespace {

0 commit comments

Comments
 (0)