(&self, grouper: &Py<PyItertoolsGrouper>)
| 553 | |
| 554 | impl GroupByState { |
| 555 | fn is_current(&self, grouper: &Py<PyItertoolsGrouper>) -> bool { |
| 556 | self.grouper |
| 557 | .as_ref() |
| 558 | .and_then(|g| g.upgrade()) |
| 559 | .is_some_and(|current_grouper| grouper.is(¤t_grouper)) |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | #[pyattr] |