@@ -348,7 +348,7 @@ def ws_key(key: bytes) -> str:
348
348
349
349
350
350
@pytest .fixture
351
- def enable_cleanup_closed () -> Generator [None , None , None ]:
351
+ def enable_cleanup_closed () -> Generator [None ]:
352
352
"""Fixture to override the NEEDS_CLEANUP_CLOSED flag.
353
353
354
354
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]:
359
359
360
360
361
361
@pytest .fixture
362
- def unused_port_socket () -> Generator [socket .socket , None , None ]:
362
+ def unused_port_socket () -> Generator [socket .socket ]:
363
363
"""Return a socket that is unused on the current host.
364
364
365
365
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]:
376
376
@pytest .fixture (params = ["zlib" , "zlib_ng.zlib_ng" , "isal.isal_zlib" ])
377
377
def parametrize_zlib_backend (
378
378
request : pytest .FixtureRequest ,
379
- ) -> Generator [None , None , None ]:
379
+ ) -> Generator [None ]:
380
380
original_backend : ZLibBackendProtocol = ZLibBackend ._zlib_backend
381
381
backend = pytest .importorskip (request .param )
382
382
set_zlib_backend (backend )
0 commit comments