Skip to content

Commit 179a050

Browse files
committed
More switch to IO
1 parent 50b63b1 commit 179a050

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import io
66
from collections.abc import Generator
77
from pathlib import Path
8-
from typing import IO, BinaryIO, Literal
8+
from typing import IO, Literal
99

1010
import pytest
1111
from mock_vws import MockVWS
@@ -53,7 +53,7 @@ def fixture_image_file(
5353
high_quality_image: io.BytesIO,
5454
tmp_path: Path,
5555
request: pytest.FixtureRequest,
56-
) -> Generator[BinaryIO]:
56+
) -> Generator[IO[bytes]]:
5757
"""
5858
An image file object.
5959
"""
@@ -69,7 +69,7 @@ def fixture_image_file(
6969
def image(
7070
request: pytest.FixtureRequest,
7171
high_quality_image: io.BytesIO,
72-
image_file: BinaryIO,
72+
image_file: IO[bytes],
7373
) -> IO[bytes]:
7474
"""
7575
An image in any of the types that the API accepts.

0 commit comments

Comments
 (0)