mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #2890 from DimitrisJim/enum_baseclass
Allow enumerate as base class.
This commit is contained in:
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user