(
current_phase: str, requested_phase: str | None, count: int | None
)
| 9 | |
| 10 | |
| 11 | def reportable_count( |
| 12 | current_phase: str, requested_phase: str | None, count: int | None |
| 13 | ) -> int | None: |
| 14 | if count is None and requested_phase in PHASES[3:] and current_phase in PHASES[:3]: |
| 15 | return 0 |
| 16 | return count |
| 17 | |
| 18 | |
| 19 | if __name__ == "__main__": |