Fix PLR0915 lint error in _completion_streaming_iterator

Add `# noqa: PLR0915` suppression to match the async twin
`_acompletion_streaming_iterator` which already carries the same
suppression. The function's complexity is inherent (nested class,
generator with fallback logic, cleanup code).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Julio Quinteros Pro 2026-03-01 17:54:20 -03:00
parent 7f1ca956be
commit 3faa864713

View file

@ -1718,7 +1718,7 @@ class Router:
return FallbackStreamWrapper(stream_with_fallbacks())
def _completion_streaming_iterator(
def _completion_streaming_iterator( # noqa: PLR0915
self,
model_response: CustomStreamWrapper,
messages: List[Dict[str, str]],