Skip to content

Commit acb1d27

Browse files
style: pre-commit fixes
1 parent 65b8b8e commit acb1d27

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,8 +1293,7 @@ template <typename... Args>
12931293
#if defined(_MSC_VER) && _MSC_VER < 1920 // MSVC 2017
12941294
constexpr
12951295
#endif
1296-
inline void
1297-
silence_unused_warnings(Args &&...) {
1296+
inline void silence_unused_warnings(Args &&...) {
12981297
}
12991298

13001299
// MSVC warning C4100: Unreferenced formal parameter

include/pybind11/eigen/tensor.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ struct eigen_tensor_helper<
124124
template <typename Type, bool ShowDetails, bool NeedsWriteable = false>
125125
struct get_tensor_descriptor {
126126
static constexpr auto details
127-
= const_name<NeedsWriteable>(", \"flags.writeable\"", "") + const_name
128-
< static_cast<int>(Type::Layout)
129-
== static_cast<int>(Eigen::RowMajor)
130-
> (", \"flags.c_contiguous\"", ", \"flags.f_contiguous\"");
127+
= const_name<NeedsWriteable>(", \"flags.writeable\"", "")
128+
+ const_name<static_cast<int>(Type::Layout) == static_cast<int>(Eigen::RowMajor)>(
129+
", \"flags.c_contiguous\"", ", \"flags.f_contiguous\"");
131130
static constexpr auto value
132131
= const_name("typing.Annotated[")
133132
+ io_name("numpy.typing.ArrayLike, ", "numpy.typing.NDArray[")

0 commit comments

Comments
 (0)