Skip to content

Commit 0688784

Browse files
style: pre-commit fixes
1 parent 821de03 commit 0688784

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/pybind11/detail/type_caster_base.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ PYBIND11_NOINLINE handle get_type_handle(const std::type_info &tp,
267267
if (interop_internals.imported_any) {
268268
handle ret = with_internals([&](internals &) {
269269
auto it = interop_internals.bindings.find(tp);
270-
if (it != interop_internals.bindings.end() &&
271-
!it->second.empty()) {
270+
if (it != interop_internals.bindings.end() && !it->second.empty()) {
272271
pymb_binding *binding = *it->second.begin();
273272
return handle((PyObject *) binding->pytype);
274273
}

tests/test_interop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2025 The pybind from __future__ import annotations
2+
from __future__ import annotations
23

34
import collections
45
import gc

0 commit comments

Comments
 (0)