mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
ci: disallow some common capitalization mistakes (#2472)
* ci: only annotate linux for now * style: block some common mistakes
This commit is contained in:
@@ -37,7 +37,7 @@ TEST_SUBMODULE(numpy_vectorize, m) {
|
||||
));
|
||||
|
||||
// test_type_selection
|
||||
// Numpy function which only accepts specific data types
|
||||
// NumPy function which only accepts specific data types
|
||||
m.def("selective_func", [](py::array_t<int, py::array::c_style>) { return "Int branch taken."; });
|
||||
m.def("selective_func", [](py::array_t<float, py::array::c_style>) { return "Float branch taken."; });
|
||||
m.def("selective_func", [](py::array_t<std::complex<float>, py::array::c_style>) { return "Complex float branch taken."; });
|
||||
|
||||
Reference in New Issue
Block a user