Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions robotpy_build/autowrap/render_pybind11.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def cls_decl(r: RenderBuffer, cls: ClassContext):
class_params.append(
f"std::unique_ptr<typename {cls.full_cpp_name}, py::nodelete>"
)
else:
class_params.append("py::smart_holder")

if cls.trampoline:
class_params.append(cls.trampoline.var)
Expand Down
1 change: 0 additions & 1 deletion robotpy_build/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def _spawn(cmd):
self.compiler._rpy_spawn = self.compiler.spawn
self.compiler.spawn = _spawn
for ext in self.extensions:
ext.define_macros.append(("PYBIND11_USE_SMART_HOLDER_AS_DEFAULT", "1"))
if debug:
ext.define_macros.append(
("PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF", "1")
Expand Down
2 changes: 1 addition & 1 deletion robotpy_build/pybind11
Submodule pybind11 updated 153 files
4 changes: 2 additions & 2 deletions tests/test_ft_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_docstrings_meth():
def test_docstrings_meth_kwd():
assert inspect.getdoc(ft.DocClass.fn2) == inspect.cleandoc(
"""
fn2(self: rpytest.ft._rpytest_ft.DocClass, from_: int) -> None
fn2(self: rpytest.ft._rpytest_ft.DocClass, from_: typing.SupportsInt) -> None

Function with parameter that's a python keyword

Expand All @@ -51,7 +51,7 @@ def test_docstrings_meth_kwd():
def test_docstrings_meth_rename():
assert inspect.getdoc(ft.DocClass.fn3) == inspect.cleandoc(
"""
fn3(self: rpytest.ft._rpytest_ft.DocClass, ohai: int) -> None
fn3(self: rpytest.ft._rpytest_ft.DocClass, ohai: typing.SupportsInt) -> None

Function with renamed parameter

Expand Down