diff --git a/tests/py-demo/bindings/src/modules/methods.cpp b/tests/py-demo/bindings/src/modules/methods.cpp index 27eaaa2..f281495 100644 --- a/tests/py-demo/bindings/src/modules/methods.cpp +++ b/tests/py-demo/bindings/src/modules/methods.cpp @@ -11,6 +11,6 @@ struct Dummy { void bind_methods_module(py::module&& m) { auto &&pyDummy = py::class_(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); } diff --git a/tests/stubs/python-3.12/pybind11-master/numpy-array-use-type-var/demo/_bindings/methods.pyi b/tests/stubs/python-3.12/pybind11-master/numpy-array-use-type-var/demo/_bindings/methods.pyi index 7a1952d..b572593 100644 --- a/tests/stubs/python-3.12/pybind11-master/numpy-array-use-type-var/demo/_bindings/methods.pyi +++ b/tests/stubs/python-3.12/pybind11-master/numpy-array-use-type-var/demo/_bindings/methods.pyi @@ -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: ... diff --git a/tests/stubs/python-3.12/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi b/tests/stubs/python-3.12/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi index 7a1952d..b572593 100644 --- a/tests/stubs/python-3.12/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi +++ b/tests/stubs/python-3.12/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi @@ -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: ... diff --git a/tests/stubs/python-3.12/pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi b/tests/stubs/python-3.12/pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi index 7a1952d..b572593 100644 --- a/tests/stubs/python-3.12/pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi +++ b/tests/stubs/python-3.12/pybind11-v2.11/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi @@ -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: ... diff --git a/tests/stubs/python-3.12/pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi b/tests/stubs/python-3.12/pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi index 7a1952d..b572593 100644 --- a/tests/stubs/python-3.12/pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi +++ b/tests/stubs/python-3.12/pybind11-v2.9/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi @@ -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: ... diff --git a/tests/stubs/python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi b/tests/stubs/python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi index 7a1952d..b572593 100644 --- a/tests/stubs/python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi +++ b/tests/stubs/python-3.7/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi @@ -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: ... diff --git a/tests/stubs/python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi b/tests/stubs/python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi index 7a1952d..b572593 100644 --- a/tests/stubs/python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi +++ b/tests/stubs/python-3.8/pybind11-master/numpy-array-wrap-with-annotated/demo/_bindings/methods.pyi @@ -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: ...