Skip to content

Commit fc815ec

Browse files
style: pre-commit fixes
1 parent f4ed7b7 commit fc815ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/detail/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@
325325
// In PyPy 7.3.3, `PyIndex_Check` is implemented by calling `__index__`,
326326
// while CPython only considers the existence of `nb_index`/`__index__`.
327327
#if !defined(PYPY_VERSION)
328-
# define PYBIND11_INDEX_CHECK(o) PyIndex_Check(o)
328+
# define PYBIND11_INDEX_CHECK(o) PyIndex_Check(o)
329329
#else
330-
# define PYBIND11_INDEX_CHECK(o) hasattr(o, "__index__")
330+
# define PYBIND11_INDEX_CHECK(o) hasattr(o, "__index__")
331331
#endif
332332
#define PYBIND11_LONG_AS_LONGLONG(o) PyLong_AsLongLong(o)
333333
#define PYBIND11_LONG_FROM_SIGNED(o) PyLong_FromSsize_t((ssize_t) (o))

0 commit comments

Comments
 (0)