From 668e5e9d1f52045fa79f2573d849e34822ba5363 Mon Sep 17 00:00:00 2001 From: Toru Ogawa Date: Tue, 4 Aug 2020 20:27:29 +0900 Subject: [PATCH] PyObject -> pyo3::PyObject --- pyo3-derive-backend/src/pyclass.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyo3-derive-backend/src/pyclass.rs b/pyo3-derive-backend/src/pyclass.rs index dffb346a..693d5004 100644 --- a/pyo3-derive-backend/src/pyclass.rs +++ b/pyo3-derive-backend/src/pyclass.rs @@ -374,7 +374,7 @@ fn impl_class( // If #cls is not extended type, we allow Self->PyObject conversion let into_pyobject = if !attr.has_extends { quote! { - impl pyo3::IntoPy for #cls { + impl pyo3::IntoPy for #cls { fn into_py(self, py: pyo3::Python) -> pyo3::PyObject { pyo3::IntoPy::into_py(pyo3::Py::new(py, self).unwrap(), py) }