From acb58b3894d6f22418d974708b11792dddef2189 Mon Sep 17 00:00:00 2001 From: Tim Ohliger Date: Sun, 1 Dec 2024 15:49:59 +0100 Subject: [PATCH] Fixed wrong logical and operator in test --- tests/test_docs_advanced_cast_custom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_docs_advanced_cast_custom.cpp b/tests/test_docs_advanced_cast_custom.cpp index badb29bbe3..a6f8a212ef 100644 --- a/tests/test_docs_advanced_cast_custom.cpp +++ b/tests/test_docs_advanced_cast_custom.cpp @@ -53,7 +53,7 @@ struct type_caster { } // Check if each element is either a float or an int for (auto item : seq) { - if (!py::isinstance(item) and !py::isinstance(item)) { + if (!py::isinstance(item) && !py::isinstance(item)) { return false; } }