We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea1a1f commit ce73615Copy full SHA for ce73615
vm/src/builtins/list.rs
@@ -65,7 +65,7 @@ impl ToPyObject for Vec<PyObjectRef> {
65
impl PyList {
66
#[deprecated(note = "use PyList::from(...).into_ref() instead")]
67
pub fn new_ref(elements: Vec<PyObjectRef>, ctx: &Context) -> PyRef<Self> {
68
- PyRef::new_ref(Self::from(elements), ctx.types.list_type.to_owned(), None)
+ Self::from(elements).into_ref(ctx)
69
}
70
71
pub fn borrow_vec(&self) -> PyMappedRwLockReadGuard<'_, [PyObjectRef]> {
0 commit comments