Skip to content

Commit 4d1ee09

Browse files
Update test_multipart.py
1 parent efdc987 commit 4d1ee09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_multipart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ def buf() -> bytearray:
4444

4545

4646
@pytest.fixture
47-
def stream(buf: bytearray) -> mock.Mock:
47+
def stream(buf: bytearray) -> AbstractStreamWriter:
4848
writer = mock.create_autospec(AbstractStreamWriter, instance=True, spec_set=True)
4949

5050
async def write(chunk: bytes) -> None:
5151
buf.extend(chunk)
5252

5353
writer.write.side_effect = write
54-
return writer
54+
return writer # type: ignore[no-any-return]
5555

5656

5757
@pytest.fixture

0 commit comments

Comments
 (0)