Skip to content

Commit a6385de

Browse files
style: pre-commit fixes
1 parent f993841 commit a6385de

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/pybind11/detail/internals.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ inline local_internals &get_local_internals() {
599599
simple_gil_scoped_acquire gil;
600600

601601
error_scope err_scope;
602-
602+
603603
local_internals_pp = find_internals_pp<local_internals>(get_local_internals_id());
604604
if (!local_internals_pp) {
605605
local_internals_pp = new local_internals *(nullptr);

include/pybind11/embed.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ inline void finalize_interpreter() {
239239
auto **&internals_ptr_ptr = detail::get_internals_pp();
240240
internals_ptr_ptr = detail::find_internals_pp<detail::internals>(PYBIND11_INTERNALS_ID);
241241
auto **&local_internals_pp = detail::get_local_internals_pp();
242-
local_internals_pp = detail::find_internals_pp<detail::local_internals>(detail::get_local_internals_id());
242+
local_internals_pp
243+
= detail::find_internals_pp<detail::local_internals>(detail::get_local_internals_id());
243244

244245
Py_Finalize();
245246

tests/test_embed/test_interpreter.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ TEST_CASE("Subinterpreter") {
382382
REQUIRE(py::hasattr(py::module_::import("__main__"), "main_tag"));
383383
REQUIRE(py::hasattr(py::module_::import("widget_module"), "extension_module_tag"));
384384
REQUIRE(has_state_dict_internals_obj());
385-
386385
}
387386

388387
TEST_CASE("Execution frame") {

0 commit comments

Comments
 (0)