Iterator over the comments in this collection.
(self)
| 22 | self._comments_part = comments_part |
| 23 | |
| 24 | def __iter__(self) -> Iterator[Comment]: |
| 25 | """Iterator over the comments in this collection.""" |
| 26 | return ( |
| 27 | Comment(comment_elm, self._comments_part) |
| 28 | for comment_elm in self._comments_elm.comment_lst |
| 29 | ) |
| 30 | |
| 31 | def __len__(self) -> int: |
| 32 | """The number of comments in this collection.""" |