Skip to content

Commit 8609b63

Browse files
🛠️ apply pre-commit fixes
1 parent d5c9975 commit 8609b63

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
@@ -231,13 +231,16 @@ def _get_state_and_remaining_time(
231231
@overload
232232
def _get_controlling_quota(
233233
self, state: Literal[CircuitBreakerState.OK, CircuitBreakerState.RECOVERY]
234-
) -> Quota: ...
234+
) -> Quota:
235+
...
235236

236237
@overload
237-
def _get_controlling_quota(self, state: Literal[CircuitBreakerState.BROKEN]) -> None: ...
238+
def _get_controlling_quota(self, state: Literal[CircuitBreakerState.BROKEN]) -> None:
239+
...
238240

239241
@overload
240-
def _get_controlling_quota(self) -> Quota | None: ...
242+
def _get_controlling_quota(self) -> Quota | None:
243+
...
241244

242245
def _get_controlling_quota(self, state: CircuitBreakerState | None = None) -> Quota | None:
243246
"""
@@ -255,19 +258,24 @@ def _get_controlling_quota(self, state: CircuitBreakerState | None = None) -> Qu
255258
return controlling_quota_by_state[_state]
256259

257260
@overload
258-
def _get_remaining_error_quota(self, quota: None, window_end: int | None) -> None: ...
261+
def _get_remaining_error_quota(self, quota: None, window_end: int | None) -> None:
262+
...
259263

260264
@overload
261-
def _get_remaining_error_quota(self, quota: Quota, window_end: int | None) -> int: ...
265+
def _get_remaining_error_quota(self, quota: Quota, window_end: int | None) -> int:
266+
...
262267

263268
@overload
264-
def _get_remaining_error_quota(self, quota: None) -> None: ...
269+
def _get_remaining_error_quota(self, quota: None) -> None:
270+
...
265271

266272
@overload
267-
def _get_remaining_error_quota(self, quota: Quota) -> int: ...
273+
def _get_remaining_error_quota(self, quota: Quota) -> int:
274+
...
268275

269276
@overload
270-
def _get_remaining_error_quota(self) -> int | None: ...
277+
def _get_remaining_error_quota(self) -> int | None:
278+
...
271279

272280
def _get_remaining_error_quota(
273281
self, quota: Quota | None = None, window_end: int | None = None

0 commit comments

Comments
 (0)