Skip to content

Commit 533aff4

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 918191071
1 parent b60b825 commit 533aff4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cel_expr_python/py_cel_value.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,15 +394,15 @@ PyObject* CelValueToPyObject(const cel::Value& cel_value,
394394
return py_map;
395395
}
396396
case cel::ValueKind::kTimestamp: {
397-
absl::optional<cel::TimestampValue> timestamp = cel_value.AsTimestamp();
397+
std::optional<cel::TimestampValue> timestamp = cel_value.AsTimestamp();
398398
if (!timestamp.has_value()) {
399399
PyErr_Format(PyExc_RuntimeError, "Cannot convert to timestamp");
400400
return nullptr;
401401
}
402402
return py::cast(timestamp->ToTime()).release().ptr();
403403
}
404404
case cel::ValueKind::kDuration: {
405-
absl::optional<cel::DurationValue> duration = cel_value.AsDuration();
405+
std::optional<cel::DurationValue> duration = cel_value.AsDuration();
406406
if (!duration.has_value()) {
407407
PyErr_Format(PyExc_RuntimeError, "Cannot convert to duration");
408408
return nullptr;

0 commit comments

Comments
 (0)