From f1d077042e40c4655874edcd9da20f7c3aaf9312 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:48:32 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#649) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/anyio/_backends/_asyncio.py | 2 +- src/anyio/_core/_sockets.py | 2 +- tests/test_taskgroups.py | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c43f026..80bc1fa9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.7 hooks: - id: ruff args: [--fix, --show-fixes] 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)