Remove tuple handling from `get_elements_cell`
Like my HEAD, this shouldn't be allowed for a tuple (and the
only call-site of this function doesn't run on tuples anyway).
@@ -348,9 +348,6 @@ pub fn get_elements_cell<'a>(obj: &'a PyObjectRef) -> &'a RefCell<Vec<PyObjectRe
if let Some(list) = obj.payload::<PyList>() {
return &list.elements;
}
- if let Some(tuple) = obj.payload::<PyTuple>() {
- return &tuple.elements;
- }
panic!("Cannot extract elements from non-sequence");
}
