We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be415f4 + 6a6b180 commit d6258c3Copy full SHA for d6258c3
robotpy_build/autowrap/cxxparser.py
@@ -1108,7 +1108,7 @@ def _on_class_method(
1108
1109
# automatically retain references passed to constructors if the
1110
# user didn't specify their own keepalive
1111
- if is_constructor and not method_data.keepalive:
+ if is_constructor and method_data.keepalive is None:
1112
for i, pctx in enumerate(fctx.filtered_params):
1113
if pctx.full_cpp_type.endswith("&"):
1114
fctx.keepalives.append((1, i + 2))
0 commit comments