Skip to content

Commit

Permalink
internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 523159480
  • Loading branch information
anandolee authored and copybara-github committed Oct 17, 2023
1 parent 6c081a7 commit ca58fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybind11_protobuf/proto_cast_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ GlobalState::GlobalState() {
auto type =
ImportCached("google.protobuf.internal.api_implementation")
.attr("Type")();
using_fast_cpp_ = (CastToOptionalString(type).value_or("") == "cpp");
using_fast_cpp_ = (CastToOptionalString(type).value_or("") != "python");

#if defined(PYBIND11_PROTOBUF_ENABLE_PYPROTO_API)
// DANGER: The only way to guarantee that the PyProto_API doesn't have
Expand Down

0 comments on commit ca58fec

Please sign in to comment.