diff --git a/src/anyio/_backends/_asyncio.py b/src/anyio/_backends/_asyncio.py index bb6a9bff..bdc0aa8d 100644 --- a/src/anyio/_backends/_asyncio.py +++ b/src/anyio/_backends/_asyncio.py @@ -609,7 +609,7 @@ def started(self, value: T_contra | None = None) -> None: def iterate_exceptions( - exception: BaseException + exception: BaseException, ) -> Generator[BaseException, None, None]: if isinstance(exception, BaseExceptionGroup): for exc in exception.exceptions: diff --git a/src/anyio/_core/_sockets.py b/src/anyio/_core/_sockets.py index cf1a40ce..0f0a3142 100644 --- a/src/anyio/_core/_sockets.py +++ b/src/anyio/_core/_sockets.py @@ -639,7 +639,7 @@ def wait_socket_writable(sock: socket.socket) -> Awaitable[None]: def convert_ipv6_sockaddr( - sockaddr: tuple[str, int, int, int] | tuple[str, int] + sockaddr: tuple[str, int, int, int] | tuple[str, int], ) -> tuple[str, int]: """ Convert a 4-tuple IPv6 socket address to a 2-tuple (address, port) format. diff --git a/tests/test_taskgroups.py b/tests/test_taskgroups.py index 221f00f4..89e97641 100644 --- a/tests/test_taskgroups.py +++ b/tests/test_taskgroups.py @@ -1325,6 +1325,7 @@ async def typetest_variance_bad(*, task_status: TaskStatus[int]) -> None: task_status2.started(0.0) async def typetest_optional_status( - *, task_status: TaskStatus[int] = TASK_STATUS_IGNORED + *, + task_status: TaskStatus[int] = TASK_STATUS_IGNORED, ) -> None: task_status.started(1)