diff --git a/tests/test_class.cpp b/tests/test_class.cpp index 109c85bf0..d5ebb2fdb 100644 --- a/tests/test_class.cpp +++ b/tests/test_class.cpp @@ -566,8 +566,7 @@ TEST_SUBMODULE(class_, m) { py::arg("x"), py::kw_only(), py::arg("y"), - py::is_method(py::none()) - ); + py::is_method(py::none())); m.attr("KwOnlyMethod") = parent_metaclass("MwOnlyMethod", py::make_tuple(), attributes); } diff --git a/tests/test_class.py b/tests/test_class.py index a6aaa23cd..c47051bcf 100644 --- a/tests/test_class.py +++ b/tests/test_class.py @@ -504,4 +504,4 @@ def test_pr4220_tripped_over_this(): def test_kw_only(): - assert (m.KwOnlyMethod().test("x", y="y") == 0) + assert m.KwOnlyMethod().test("x", y="y") == 0