style: pre-commit fixes

This commit is contained in:
pre-commit-ci[bot] 2024-10-10 17:34:55 +00:00
parent 35b16a8d5f
commit 3cd11315da
2 changed files with 2 additions and 3 deletions

View File

@ -566,8 +566,7 @@ TEST_SUBMODULE(class_, m) {
py::arg("x"), py::arg("x"),
py::kw_only(), py::kw_only(),
py::arg("y"), py::arg("y"),
py::is_method(py::none()) py::is_method(py::none()));
);
m.attr("KwOnlyMethod") = parent_metaclass("MwOnlyMethod", py::make_tuple(), attributes); m.attr("KwOnlyMethod") = parent_metaclass("MwOnlyMethod", py::make_tuple(), attributes);
} }

View File

@ -504,4 +504,4 @@ def test_pr4220_tripped_over_this():
def test_kw_only(): def test_kw_only():
assert (m.KwOnlyMethod().test("x", y="y") == 0) assert m.KwOnlyMethod().test("x", y="y") == 0