(self, failure_threshold: int = 5, recovery_seconds: float = 30.0)
| 534 | """ |
| 535 | |
| 536 | def __init__(self, failure_threshold: int = 5, recovery_seconds: float = 30.0): |
| 537 | self.failure_threshold = failure_threshold |
| 538 | self.recovery_seconds = recovery_seconds |
| 539 | self._failures = 0 |
| 540 | self._last_failure_time: Optional[float] = None |
| 541 | self._state = CircuitState.CLOSED |
| 542 | self._lock = threading.Lock() |
| 543 | |
| 544 | @property |
| 545 | def state(self) -> CircuitState: |
nothing calls this directly
no outgoing calls
no test coverage detected