Files
pybind11/include/pybind11
gentlegiantJGC af796d0a99 Don't allow keep_alive or call_guard on properties (#5533)
* Don't allow keep_alive or call_guard on properties

The def_property family blindly ignore the keep_alive and call_guard arguments passed to them making them confusing to use.
This adds a static_assert if either is passed to make it clear it doesn't work.
I would prefer this to be a compiler warning but I can't find a way to do that. Is that even possible?

* style: pre-commit fixes

* Re-run tests

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-11-15 08:53:15 -08:00
..
2025-08-30 23:07:03 -07:00
2025-05-16 21:58:43 -04:00
2025-11-13 16:29:02 -08:00
2025-06-18 19:40:31 -04:00