| 1 |
Index: libcst-derive/src/into_py.rs |
| 2 |
=================================================================== |
| 3 |
--- libcst-derive.orig/src/into_py.rs 2006-07-24 03:21:28.000000000 +0200 |
| 4 |
+++ libcst-derive/src/into_py.rs 2026-04-18 22:50:25.727272133 +0200 |
| 5 |
@@ -69,8 +69,8 @@ |
| 6 |
let gen = quote! { |
| 7 |
use pyo3::types::IntoPyDict as _; |
| 8 |
#[automatically_derived] |
| 9 |
- impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::PyObject> for #ident #generics { |
| 10 |
- fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::PyObject> { |
| 11 |
+ impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::Py<pyo3::PyAny>> for #ident #generics { |
| 12 |
+ fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::Py<pyo3::PyAny>> { |
| 13 |
match self { |
| 14 |
#(#toks)* |
| 15 |
} |
| 16 |
@@ -87,8 +87,8 @@ |
| 17 |
let gen = quote! { |
| 18 |
use pyo3::types::IntoPyDict as _; |
| 19 |
#[automatically_derived] |
| 20 |
- impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::PyObject> for #ident #generics { |
| 21 |
- fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::PyObject> { |
| 22 |
+ impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::Py<pyo3::PyAny>> for #ident #generics { |
| 23 |
+ fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::Py<pyo3::PyAny>> { |
| 24 |
use pyo3::types::PyAnyMethods; |
| 25 |
let libcst = pyo3::types::PyModule::import(py, "libcst")?; |
| 26 |
let kwargs = #kwargs_toks ; |