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