We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
handle::operator bool()
handle::check()
1 parent ba9b679 commit 6ecec62Copy full SHA for 6ecec62
pybind11_protobuf/proto_cast_util.cc
@@ -305,7 +305,7 @@ py::object GlobalState::PyMessageInstance(const Descriptor* descriptor) {
305
try {
306
auto d = find_message_type_by_name_(descriptor->full_name());
307
py::object p;
308
- if (get_message_class_.check()) {
+ if (get_message_class_) {
309
p = get_message_class_(d);
310
} else {
311
// TODO(pybind11-infra): Cleanup `MessageFactory.GetProtoType` after it
0 commit comments