style(gemini realtime): satisfy ruff format on the rate-range guard

CI runs ruff format --check over changed litellm/**/*.py; the multi-line
condition on the accepted-rate check collapses to one line under the repo's
88-column config.
This commit is contained in:
Jeremy Schoemaker 2026-09-10 17:05:17 -05:00
parent 79577e1288
commit 2de23ad195
No known key found for this signature in database

View file

@ -508,9 +508,7 @@ class GeminiRealtimeConfig(BaseRealtimeConfig):
# bool is an int subclass, so exclude it explicitly.
if isinstance(rate, bool) or not isinstance(rate, int):
return
if not (
MIN_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ <= rate <= MAX_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ
):
if not (MIN_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ <= rate <= MAX_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ):
verbose_logger.warning(
"Gemini Realtime: ignoring declared input audio rate %s, outside the accepted "
"%s-%s Hz range; keeping %s Hz",