We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81d2df8 commit dbdbdc8Copy full SHA for dbdbdc8
vm/src/stdlib/itertools.rs
@@ -142,7 +142,12 @@ mod decl {
142
}
143
144
#[pyimpl(with(IterNext, Constructor))]
145
- impl PyItertoolsCompress {}
+ impl PyItertoolsCompress {
146
+ #[pymethod(magic)]
147
+ fn reduce(zelf: PyRef<Self>) -> (PyTypeRef, (PyIter, PyIter)) {
148
+ (zelf.class().clone(), (zelf.data.clone(), zelf.selectors.clone()))
149
+ }
150
151
152
impl IterNextIterable for PyItertoolsCompress {}
153
impl IterNext for PyItertoolsCompress {
0 commit comments