You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the question here is to define how to convert Arc<T>. We don't have access to a T by value so we can't just forward it that way. I guess it would make the most sense to forward to the implementation for &T using HRTB, but I don't know of a way to name it in the associated types. We could of course erase the types and just return PyAny and PyErr, but I'm not so sure whether we should do that.
It is possible to implement on a reference, which would make it work for #[pyo3(get)] on #[pyclass], but would not work for #[derive(IntoPyObject)] (only #[derive(IntoPyObjectRef)]) or as return type.
I defined a class
and I got the error below
`std::sync::Arc<std::vec::Vec<std::string::String>>` cannot be converted to a Python objec
The text was updated successfully, but these errors were encountered: