mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-23 23:49:24 +08:00
Alternative implementation for #1657: if we know that `obj` is never a `nullptr` [1], we should not `nullptr`-check it *after* already dereferencing it. [1] https://github.com/pybind/pybind11/pull/1657#issuecomment-452090058