Skip to content

Commit 36de80a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 12b89d9 commit 36de80a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/io.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void register_io(py::module& m) {
7070
.def(py::init<>())
7171
.def(py::init<std::string>())
7272
.def("__str__",
73-
(std::string(std::stringstream::*)() const)&std::stringstream::str);
73+
(std::string (std::stringstream::*)() const) & std::stringstream::str);
7474

7575
py::class_<Reader>(m, "Reader")
7676
// clang-format off

src/pybind.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ _T overload_cast(_T x) {
3737
DOC(cls.name))
3838
#define METH(name, cls, ...) .def(#name, &cls::name, ##__VA_ARGS__, DOC(cls.name))
3939
#define METH_OL(name, cls, rval, args) \
40-
.def(#name, (rval(cls::*)(args)) & cls::name, DOC(cls.name))
40+
.def(#name, (rval (cls::*)(args)) & cls::name, DOC(cls.name))
4141
#define ATTR(name, cls) .def_readwrite(#name, &cls::name, DOC(cls.name))
4242
#define REPR(name) .def("__repr__", repr<name>)
4343
#define EQ(name) \

0 commit comments

Comments
 (0)