(self)
| 855 | |
| 856 | @property |
| 857 | def next(self): |
| 858 | if self.timeline is None: |
| 859 | return None |
| 860 | |
| 861 | with self.timeline.frozen(): |
| 862 | was_last = self is self.timeline.last |
| 863 | occ = self._next |
| 864 | |
| 865 | if was_last: |
| 866 | # The .next property of the last occurrence in a timeline can change |
| 867 | # at any moment when timeline isn't frozen. So if it wasn't frozen by |
| 868 | # the caller, this was an unsafe operation, and we should complain. |
| 869 | self.timeline.expect_frozen() |
| 870 | |
| 871 | return occ |
| 872 | |
| 873 | def preceding(self): |
| 874 | it = self.and_preceding() |
nothing calls this directly
no test coverage detected