Skip to content

Commit 02f6c8f

Browse files
authored
test: ✅ update bind_methods_module method names (#194)
1 parent adbd6a3 commit 02f6c8f

File tree

7 files changed

+14
-14
lines changed
  • tests
    • py-demo/bindings/src/modules
    • stubs
      • python-3.12
        • pybind11-master
        • pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings
        • pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings
      • python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings
      • python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings

7 files changed

+14
-14
lines changed

tests/py-demo/bindings/src/modules/methods.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ struct Dummy {
1111
void bind_methods_module(py::module&& m) {
1212
auto &&pyDummy = py::class_<Dummy>(m, "Dummy");
1313

14-
pyDummy.def_static("def_static", &Dummy::static_method);
15-
pyDummy.def("def_", &Dummy::regular_method);
14+
pyDummy.def_static("static_method", &Dummy::static_method);
15+
pyDummy.def("regular_method", &Dummy::regular_method);
1616
}

tests/stubs/python-3.12/pybind11-master/numpy-array-use-type-var/demo/_bindings/methods.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ __all__ = ["Dummy"]
44

55
class Dummy:
66
@staticmethod
7-
def def_static(arg0: int) -> int: ...
8-
def def_(self, arg0: int) -> int: ...
7+
def static_method(arg0: int) -> int: ...
8+
def regular_method(self, arg0: int) -> int: ...

tests/stubs/python-3.12/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ __all__ = ["Dummy"]
44

55
class Dummy:
66
@staticmethod
7-
def def_static(arg0: int) -> int: ...
8-
def def_(self, arg0: int) -> int: ...
7+
def static_method(arg0: int) -> int: ...
8+
def regular_method(self, arg0: int) -> int: ...

tests/stubs/python-3.12/pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ __all__ = ["Dummy"]
44

55
class Dummy:
66
@staticmethod
7-
def def_static(arg0: int) -> int: ...
8-
def def_(self, arg0: int) -> int: ...
7+
def static_method(arg0: int) -> int: ...
8+
def regular_method(self, arg0: int) -> int: ...

tests/stubs/python-3.12/pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ __all__ = ["Dummy"]
44

55
class Dummy:
66
@staticmethod
7-
def def_static(arg0: int) -> int: ...
8-
def def_(self, arg0: int) -> int: ...
7+
def static_method(arg0: int) -> int: ...
8+
def regular_method(self, arg0: int) -> int: ...

tests/stubs/python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ __all__ = ["Dummy"]
44

55
class Dummy:
66
@staticmethod
7-
def def_static(arg0: int) -> int: ...
8-
def def_(self, arg0: int) -> int: ...
7+
def static_method(arg0: int) -> int: ...
8+
def regular_method(self, arg0: int) -> int: ...

tests/stubs/python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ __all__ = ["Dummy"]
44

55
class Dummy:
66
@staticmethod
7-
def def_static(arg0: int) -> int: ...
8-
def def_(self, arg0: int) -> int: ...
7+
def static_method(arg0: int) -> int: ...
8+
def regular_method(self, arg0: int) -> int: ...

0 commit comments

Comments
 (0)