Skip to content

Commit 872f647

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 15a0fa8 commit 872f647

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
@@ -348,7 +348,7 @@ def ws_key(key: bytes) -> str:
348348

349349

350350
@pytest.fixture
351-
def enable_cleanup_closed() -> Generator[None, None, None]:
351+
def enable_cleanup_closed() -> Generator[None]:
352352
"""Fixture to override the NEEDS_CLEANUP_CLOSED flag.
353353
354354
On Python 3.12.7+ and 3.13.1+ enable_cleanup_closed is not needed,
@@ -359,7 +359,7 @@ def enable_cleanup_closed() -> Generator[None, None, None]:
359359

360360

361361
@pytest.fixture
362-
def unused_port_socket() -> Generator[socket.socket, None, None]:
362+
def unused_port_socket() -> Generator[socket.socket]:
363363
"""Return a socket that is unused on the current host.
364364
365365
Unlike aiohttp_used_port, the socket is yielded so there is no
@@ -376,7 +376,7 @@ def unused_port_socket() -> Generator[socket.socket, None, None]:
376376
@pytest.fixture(params=["zlib", "zlib_ng.zlib_ng", "isal.isal_zlib"])
377377
def parametrize_zlib_backend(
378378
request: pytest.FixtureRequest,
379-
) -> Generator[None, None, None]:
379+
) -> Generator[None]:
380380
original_backend: ZLibBackendProtocol = ZLibBackend._zlib_backend
381381
backend = pytest.importorskip(request.param)
382382
set_zlib_backend(backend)

0 commit comments

Comments
 (0)