pybind / pybind11_protobuf

Pybind11 bindings for Google's Protocol Buffers
Other
57 stars 35 forks source link

Return false instead of CHECK failing on descriptor pool mismatch #95

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Return false instead of CHECK failing on descriptor pool mismatch

PyProtoIsCompatible currently CHECK fails when the proto does not use the default pool. Instead of CHECKing, we return false to indicate that the proto must be copied.