Skip to content

Commit 6988e82

Browse files
authored
Merge pull request RustPython#2890 from DimitrisJim/enum_baseclass
Allow enumerate as base class.
2 parents 67ede59 + d23c7e9 commit 6988e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/builtins/enumerate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct EnumerateArgs {
3232
start: OptionalArg<PyIntRef>,
3333
}
3434

35-
#[pyimpl(with(PyIter))]
35+
#[pyimpl(with(PyIter), flags(BASETYPE))]
3636
impl PyEnumerate {
3737
#[pyslot]
3838
fn tp_new(cls: PyTypeRef, args: EnumerateArgs, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {

0 commit comments

Comments
 (0)