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