Merge pull request #2890 from DimitrisJim/enum_baseclass

Allow enumerate as base class.
This commit is contained in:
Jeong YunWon
2021-08-16 14:10:16 +09:00
committed by GitHub

View File

@@ -32,7 +32,7 @@ struct EnumerateArgs {
start: OptionalArg<PyIntRef>,
}
#[pyimpl(with(PyIter))]
#[pyimpl(with(PyIter), flags(BASETYPE))]
impl PyEnumerate {
#[pyslot]
fn tp_new(cls: PyTypeRef, args: EnumerateArgs, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {