Skip to content

Commit e0d7108

Browse files
🛠️ apply pre-commit fixes
1 parent 526edc4 commit e0d7108

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/sentry/utils/circuit_breaker2.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,16 @@ def _get_state_and_remaining_time(
326326
@overload
327327
def _get_controlling_quota(
328328
self, state: Literal[CircuitBreakerState.OK, CircuitBreakerState.RECOVERY]
329-
) -> Quota: ...
329+
) -> Quota:
330+
...
330331

331332
@overload
332-
def _get_controlling_quota(self, state: Literal[CircuitBreakerState.BROKEN]) -> None: ...
333+
def _get_controlling_quota(self, state: Literal[CircuitBreakerState.BROKEN]) -> None:
334+
...
333335

334336
@overload
335-
def _get_controlling_quota(self) -> Quota | None: ...
337+
def _get_controlling_quota(self) -> Quota | None:
338+
...
336339

337340
def _get_controlling_quota(self, state: CircuitBreakerState | None = None) -> Quota | None:
338341
"""
@@ -350,19 +353,24 @@ def _get_controlling_quota(self, state: CircuitBreakerState | None = None) -> Qu
350353
return controlling_quota_by_state[_state]
351354

352355
@overload
353-
def _get_remaining_error_quota(self, quota: None, window_end: int | None) -> None: ...
356+
def _get_remaining_error_quota(self, quota: None, window_end: int | None) -> None:
357+
...
354358

355359
@overload
356-
def _get_remaining_error_quota(self, quota: Quota, window_end: int | None) -> int: ...
360+
def _get_remaining_error_quota(self, quota: Quota, window_end: int | None) -> int:
361+
...
357362

358363
@overload
359-
def _get_remaining_error_quota(self, quota: None) -> None: ...
364+
def _get_remaining_error_quota(self, quota: None) -> None:
365+
...
360366

361367
@overload
362-
def _get_remaining_error_quota(self, quota: Quota) -> int: ...
368+
def _get_remaining_error_quota(self, quota: Quota) -> int:
369+
...
363370

364371
@overload
365-
def _get_remaining_error_quota(self) -> int | None: ...
372+
def _get_remaining_error_quota(self) -> int | None:
373+
...
366374

367375
def _get_remaining_error_quota(
368376
self, quota: Quota | None = None, window_end: int | None = None

0 commit comments

Comments
 (0)