Closed semagnum closed 4 months ago
Attention: Patch coverage is 80.00000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 81.70%. Comparing base (
c0e97b0
) to head (6114856
). Report is 18 commits behind head on main.
Just to make sure I understand- because it was pointer before, you could pass the python None
value, which would coerce to a nullptr
and then cause a segfault when adding. By switching to a ref, pybind disallows nullptr
/None
and raises a TypeError
?
Fixes #1680
Summary
Changes to reference parameter to raise
TypeError
instead of crashing with a segmentation fault. Createdtest_append_none
to prevent regression.