Merge pull request #1080 from Hakuyume/use-qualified-path-in-derive

Use qualified path in derive
This commit is contained in:
Yuji Kanagawa 2020-08-04 21:01:48 +09:00 committed by GitHub
commit 3ac327c8e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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<PyObject> for #cls {
impl pyo3::IntoPy<pyo3::PyObject> for #cls {
fn into_py(self, py: pyo3::Python) -> pyo3::PyObject {
pyo3::IntoPy::into_py(pyo3::Py::new(py, self).unwrap(), py)
}