From 56cab0b761a20f210cc3ae042b4317003bf42bb4 Mon Sep 17 00:00:00 2001 From: Tim Ohliger Date: Fri, 10 Jan 2025 09:52:38 +0100 Subject: [PATCH] Removed unused parameter name to prevent warning --- tests/test_pytypes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pytypes.cpp b/tests/test_pytypes.cpp index 43a0247208..209513db9d 100644 --- a/tests/test_pytypes.cpp +++ b/tests/test_pytypes.cpp @@ -978,7 +978,7 @@ TEST_SUBMODULE(pytypes, m) { m.def("identity_literal_curly_open", [](const py::typing::Literal<"\"{\""> &x) { return x; }); m.def("identity_literal_curly_close", [](const py::typing::Literal<"\"}\""> &x) { return x; }); m.def("identity_literal_arrow_with_io_name", - [](const py::typing::Literal<"\"->\""> &x, const RealNumber &y) { return x; }); + [](const py::typing::Literal<"\"->\""> &x, const RealNumber &) { return x; }); m.def("identity_literal_arrow_with_callable", [](const py::typing::Callable\""> &, const RealNumber &)> &x) { return x; });