Commit 7cf76381 by pybind11_abseil authors Committed by Copybara-Service

Internal change

PiperOrigin-RevId: 370974101
parent 59e18114
......@@ -138,7 +138,8 @@ struct type_caster<absl::StatusOr<PayloadType>> {
public:
using PayloadCaster = make_caster<PayloadType>;
using StatusCaster = make_caster<absl::Status>;
static constexpr auto name = _("StatusOr[") + PayloadCaster::name + _("]");
static constexpr auto name =
_("Union[") + StatusCaster::name + _(", ") + PayloadCaster::name + _("]");
// Convert C++ -> Python.
static handle cast(const absl::StatusOr<PayloadType>* src,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment