@@ -231,13 +231,16 @@ def _get_state_and_remaining_time(
231
231
@overload
232
232
def _get_controlling_quota (
233
233
self , state : Literal [CircuitBreakerState .OK , CircuitBreakerState .RECOVERY ]
234
- ) -> Quota : ...
234
+ ) -> Quota :
235
+ ...
235
236
236
237
@overload
237
- def _get_controlling_quota (self , state : Literal [CircuitBreakerState .BROKEN ]) -> None : ...
238
+ def _get_controlling_quota (self , state : Literal [CircuitBreakerState .BROKEN ]) -> None :
239
+ ...
238
240
239
241
@overload
240
- def _get_controlling_quota (self ) -> Quota | None : ...
242
+ def _get_controlling_quota (self ) -> Quota | None :
243
+ ...
241
244
242
245
def _get_controlling_quota (self , state : CircuitBreakerState | None = None ) -> Quota | None :
243
246
"""
@@ -255,19 +258,24 @@ def _get_controlling_quota(self, state: CircuitBreakerState | None = None) -> Qu
255
258
return controlling_quota_by_state [_state ]
256
259
257
260
@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
+ ...
259
263
260
264
@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
+ ...
262
267
263
268
@overload
264
- def _get_remaining_error_quota (self , quota : None ) -> None : ...
269
+ def _get_remaining_error_quota (self , quota : None ) -> None :
270
+ ...
265
271
266
272
@overload
267
- def _get_remaining_error_quota (self , quota : Quota ) -> int : ...
273
+ def _get_remaining_error_quota (self , quota : Quota ) -> int :
274
+ ...
268
275
269
276
@overload
270
- def _get_remaining_error_quota (self ) -> int | None : ...
277
+ def _get_remaining_error_quota (self ) -> int | None :
278
+ ...
271
279
272
280
def _get_remaining_error_quota (
273
281
self , quota : Quota | None = None , window_end : int | None = None
0 commit comments