From 7ced615c8d32603ada3fb9f27b6b44b091f7e16b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 27 Jul 2022 03:59:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- taichi/python/export_lang.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/taichi/python/export_lang.cpp b/taichi/python/export_lang.cpp index 97b27b577ff36..97dc311c0cfc2 100644 --- a/taichi/python/export_lang.cpp +++ b/taichi/python/export_lang.cpp @@ -713,10 +713,12 @@ void export_lang(py::module &m) { .def("set_adjoint", &Expr::set_adjoint) .def("set_dual", &Expr::set_dual) .def("set_attribute", &Expr::set_attribute) - .def("get_dt", - [&](Expr *expr) -> const Type * { - return expr->cast()->dt; - }, py::return_value_policy::reference) + .def( + "get_dt", + [&](Expr *expr) -> const Type * { + return expr->cast()->dt; + }, + py::return_value_policy::reference) .def("get_ret_type", &Expr::get_ret_type) .def("type_check", &Expr::type_check) .def("get_expr_name",