Allow enumerate as base class.

This commit is contained in:
jfh
2021-08-16 07:27:45 +03:00
parent 67ede59c32
commit d23c7e9432

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>> {