Skip to content

Commit

Permalink
Fixed wrong logical and operator in test
Browse files Browse the repository at this point in the history
  • Loading branch information
timohl committed Dec 1, 2024
1 parent eea98b2 commit acb58b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_docs_advanced_cast_custom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct type_caster<user_space::Point2D> {
}
// Check if each element is either a float or an int
for (auto item : seq) {
if (!py::isinstance<py::float_>(item) and !py::isinstance<py::int_>(item)) {
if (!py::isinstance<py::float_>(item) && !py::isinstance<py::int_>(item)) {
return false;
}
}
Expand Down

0 comments on commit acb58b3

Please sign in to comment.