From b2eb1840dbfa9f00e7eb10d621456c4593dd0470 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 21:12:22 +0900 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#63) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.285 → v0.0.291](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.285...v0.0.291) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/aiotools/taskgroup/types.py | 3 +-- src/aiotools/types.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 321d6f9..5b0f097 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,11 +8,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.285 + rev: v0.0.291 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/aiotools/taskgroup/types.py b/src/aiotools/taskgroup/types.py index 21c2aa0..afc2731 100644 --- a/src/aiotools/taskgroup/types.py +++ b/src/aiotools/taskgroup/types.py @@ -14,8 +14,7 @@ async def __call__( exc_type: type[Exception], exc_obj: Exception, exc_tb: TracebackType, - ) -> None: - ... + ) -> None: ... class MultiError(ExceptionGroup): diff --git a/src/aiotools/types.py b/src/aiotools/types.py index a850bd3..96cd471 100644 --- a/src/aiotools/types.py +++ b/src/aiotools/types.py @@ -17,8 +17,7 @@ @runtime_checkable class AsyncClosable(Protocol): - async def close(self) -> None: - ... + async def close(self) -> None: ... # taken from the typeshed