fix(proxy): type the equality operand in the stream buffer

list(other) on an isinstance-narrowed Sequence[Unknown] added one
reportUnknownArgumentType, which tripped the basedpyright delta gate.
Bind it to Sequence[object] first; behaviour is unchanged.
This commit is contained in:
Aryan Deshmukh 2026-10-24 12:27:38 +05:30
parent 2350324fd6
commit ed916038be

View file

@ -108,7 +108,10 @@ class BoundedChunkBuffer(Sequence[bytes]):
return len(self._frames())
def __eq__(self, other: object) -> bool:
return isinstance(other, Sequence) and list(self) == list(other)
if not isinstance(other, Sequence):
return False
other_items: Final[Sequence[object]] = other
return list(self) == list(other_items)
def __bool__(self) -> bool:
return self.total_bytes > 0