Skip to content

Commit 1475be6

Browse files
committed
nanobind: .none() on ConstantExpression value (no-default py::object accepting None)
1 parent 5cb74bd commit 1475be6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/duckdb_py/pyexpression/initialize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void InitializeStaticMethods(py::module_ &m) {
1111

1212
// Constant Expression
1313
docs = "Create a constant expression from the provided value";
14-
m.def("ConstantExpression", &DuckDBPyExpression::ConstantExpression, py::arg("value"), docs);
14+
m.def("ConstantExpression", &DuckDBPyExpression::ConstantExpression, py::arg("value").none(), docs); // None accepted (lit(None))
1515

1616
// ColumnRef Expression
1717
docs = "Create a column reference from the provided column name";

0 commit comments

Comments
 (0)