equal
deleted
inserted
replaced
124 }); |
124 }); |
125 |
125 |
126 py_class!(pub class MissingAncestors |py| { |
126 py_class!(pub class MissingAncestors |py| { |
127 data inner: RefCell<Box<CoreMissing<Index>>>; |
127 data inner: RefCell<Box<CoreMissing<Index>>>; |
128 |
128 |
129 def __new__(_cls, index: PyObject, bases: PyObject) -> PyResult<MissingAncestors> { |
129 def __new__( |
|
130 _cls, |
|
131 index: PyObject, |
|
132 bases: PyObject |
|
133 ) |
|
134 -> PyResult<MissingAncestors> { |
130 let bases_vec: Vec<Revision> = rev_pyiter_collect(py, &bases)?; |
135 let bases_vec: Vec<Revision> = rev_pyiter_collect(py, &bases)?; |
131 let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec); |
136 let inner = CoreMissing::new(pyindex_to_graph(py, index)?, bases_vec); |
132 MissingAncestors::create_instance(py, RefCell::new(Box::new(inner))) |
137 MissingAncestors::create_instance(py, RefCell::new(Box::new(inner))) |
133 } |
138 } |
134 |
139 |