Skip to content

Commit

Permalink
test: ✅ update bind_methods_module method names (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringohoffman authored Nov 24, 2023
1 parent adbd6a3 commit 02f6c8f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tests/py-demo/bindings/src/modules/methods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ struct Dummy {
void bind_methods_module(py::module&& m) {
auto &&pyDummy = py::class_<Dummy>(m, "Dummy");

pyDummy.def_static("def_static", &Dummy::static_method);
pyDummy.def("def_", &Dummy::regular_method);
pyDummy.def_static("static_method", &Dummy::static_method);
pyDummy.def("regular_method", &Dummy::regular_method);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ __all__ = ["Dummy"]

class Dummy:
@staticmethod
def def_static(arg0: int) -> int: ...
def def_(self, arg0: int) -> int: ...
def static_method(arg0: int) -> int: ...
def regular_method(self, arg0: int) -> int: ...
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ __all__ = ["Dummy"]

class Dummy:
@staticmethod
def def_static(arg0: int) -> int: ...
def def_(self, arg0: int) -> int: ...
def static_method(arg0: int) -> int: ...
def regular_method(self, arg0: int) -> int: ...
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ __all__ = ["Dummy"]

class Dummy:
@staticmethod
def def_static(arg0: int) -> int: ...
def def_(self, arg0: int) -> int: ...
def static_method(arg0: int) -> int: ...
def regular_method(self, arg0: int) -> int: ...
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ __all__ = ["Dummy"]

class Dummy:
@staticmethod
def def_static(arg0: int) -> int: ...
def def_(self, arg0: int) -> int: ...
def static_method(arg0: int) -> int: ...
def regular_method(self, arg0: int) -> int: ...
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ __all__ = ["Dummy"]

class Dummy:
@staticmethod
def def_static(arg0: int) -> int: ...
def def_(self, arg0: int) -> int: ...
def static_method(arg0: int) -> int: ...
def regular_method(self, arg0: int) -> int: ...
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ __all__ = ["Dummy"]

class Dummy:
@staticmethod
def def_static(arg0: int) -> int: ...
def def_(self, arg0: int) -> int: ...
def static_method(arg0: int) -> int: ...
def regular_method(self, arg0: int) -> int: ...

0 comments on commit 02f6c8f

Please sign in to comment.