| 517 | # ============================================================================= |
| 518 | |
| 519 | class CircuitState(str, Enum): |
| 520 | CLOSED = "closed" # Normal operation |
| 521 | OPEN = "open" # Failing — reject calls immediately |
| 522 | HALF_OPEN = "half_open" # Testing recovery |
| 523 | |
| 524 | |
| 525 | class CircuitBreaker: |
nothing calls this directly
no outgoing calls
no test coverage detected