pub fn extract_pyclass_ref<'a, 'py: 'a, T: PyClass>( obj: &'a Bound<'py, PyAny>, holder: &'a mut Option<PyRef<'py, T>>, ) -> PyResult<&'a T>