Return new instance, with date and count fields updated.
(self, last_run_at=None)
| 138 | _default_now = default_now # compat |
| 139 | |
| 140 | def _next_instance(self, last_run_at=None): |
| 141 | """Return new instance, with date and count fields updated.""" |
| 142 | return self.__class__(**dict( |
| 143 | self, |
| 144 | last_run_at=last_run_at or self.default_now(), |
| 145 | total_run_count=self.total_run_count + 1, |
| 146 | )) |
| 147 | __next__ = next = _next_instance # for 2to3 |
| 148 | |
| 149 | def __reduce__(self): |
nothing calls this directly
no test coverage detected