style: pre-commit fixes
diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h
index 22dfc62..16952c5 100644
--- a/include/pybind11/detail/common.h
+++ b/include/pybind11/detail/common.h
@@ -1293,8 +1293,7 @@
#if defined(_MSC_VER) && _MSC_VER < 1920 // MSVC 2017
constexpr
#endif
- inline void
- silence_unused_warnings(Args &&...) {
+ inline void silence_unused_warnings(Args &&...) {
}
// MSVC warning C4100: Unreferenced formal parameter
diff --git a/include/pybind11/eigen/tensor.h b/include/pybind11/eigen/tensor.h
index 50e8b50..e5c8441 100644
--- a/include/pybind11/eigen/tensor.h
+++ b/include/pybind11/eigen/tensor.h
@@ -124,10 +124,9 @@
template <typename Type, bool ShowDetails, bool NeedsWriteable = false>
struct get_tensor_descriptor {
static constexpr auto details
- = const_name<NeedsWriteable>(", \"flags.writeable\"", "") + const_name
- < static_cast<int>(Type::Layout)
- == static_cast<int>(Eigen::RowMajor)
- > (", \"flags.c_contiguous\"", ", \"flags.f_contiguous\"");
+ = const_name<NeedsWriteable>(", \"flags.writeable\"", "")
+ + const_name<static_cast<int>(Type::Layout) == static_cast<int>(Eigen::RowMajor)>(
+ ", \"flags.c_contiguous\"", ", \"flags.f_contiguous\"");
static constexpr auto value
= const_name("typing.Annotated[")
+ io_name("numpy.typing.ArrayLike, ", "numpy.typing.NDArray[")