refactor(model_armor): type the buffered stream chunks as object

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-09-03 08:26:43 +00:00
parent 3190f42abf
commit 4e9c6b5dd4
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@
"limit": 19
},
"reportExplicitAny": {
"limit": 4124
"limit": 4123
},
"reportFunctionMemberAccess": {
"limit": 7

View file

@ -1095,7 +1095,7 @@ class ModelArmorGuardrail(CustomGuardrail, VertexBase):
add_guardrail_to_applied_guardrails_header,
)
all_chunks: Final[Sequence[Any]] = tuple([chunk async for chunk in response])
all_chunks: Final[Sequence[object]] = tuple([chunk async for chunk in response])
if not all_chunks or self._is_terminal_error_stream(all_chunks):
for chunk in all_chunks:

View file

@ -1,9 +1,9 @@
{
"LIT001": {
"limit": 22329
"limit": 22328
},
"LIT002": {
"limit": 26762
"limit": 26761
},
"LIT003": {
"limit": 261