Skip to content

Commit 4bbcdee

Browse files
style: pre-commit fixes
1 parent 7f49381 commit 4bbcdee

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

include/pybind11/pytypes.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,9 +1641,7 @@ class str : public object {
16411641
# endif
16421642

16431643
// Avoid ambiguity when converting from kwargs (GCC)
1644-
explicit str(const kwargs &k)
1645-
: str(static_cast<handle>(k)) {}
1646-
1644+
explicit str(const kwargs &k) : str(static_cast<handle>(k)) {}
16471645

16481646
#endif
16491647

tests/test_pytypes.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,9 +1213,6 @@ TEST_SUBMODULE(pytypes, m) {
12131213
});
12141214
}
12151215

1216-
12171216
TEST_SUBMODULE(pytypes, kwargs_str) {
1218-
m.def("kwargs_to_str", [](py::kwargs kwargs) {
1219-
return py::str(kwargs);
1220-
});
1217+
m.def("kwargs_to_str", [](py::kwargs kwargs) { return py::str(kwargs); });
12211218
}

0 commit comments

Comments
 (0)