mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
Adding .clang-tidy readability-braces-around-statements option.
clang-tidy automatic changes. NO manual changes.
This commit is contained in:
committed by
Ralf W. Grosse-Kunstleve
parent
8581584e60
commit
ddbc74c674
@@ -93,8 +93,9 @@ TEST_SUBMODULE(eval_, m) {
|
||||
|
||||
// test_eval_empty_globals
|
||||
m.def("eval_empty_globals", [](py::object global) {
|
||||
if (global.is_none())
|
||||
if (global.is_none()) {
|
||||
global = py::dict();
|
||||
}
|
||||
auto int_class = py::eval("isinstance(42, int)", global);
|
||||
return global;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user