refactor: improve type coercion functions and enhance type hints across multiple files
This commit is contained in:
@@ -167,6 +167,9 @@ class _GatewayBackoff:
|
||||
self._delay_s = min(self._delay_s * 2.0, self._max_delay_s)
|
||||
continue
|
||||
self.reset()
|
||||
if value is None:
|
||||
msg = "Gateway retry produced no value without an error"
|
||||
raise RuntimeError(msg)
|
||||
return value
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user