diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6bc7910..88d0cbd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: '21.11b1' + rev: '21.12b0' hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ diff --git a/async_timeout/__init__.py b/async_timeout/__init__.py index 4d74538..e5b2caa 100644 --- a/async_timeout/__init__.py +++ b/async_timeout/__init__.py @@ -227,7 +227,6 @@ def _on_timeout(self, task: "asyncio.Task[None]") -> None: def _current_task(loop: asyncio.AbstractEventLoop) -> "Optional[asyncio.Task[Any]]": return asyncio.current_task(loop=loop) - else: def _current_task(loop: asyncio.AbstractEventLoop) -> "Optional[asyncio.Task[Any]]": @@ -239,7 +238,6 @@ def _current_task(loop: asyncio.AbstractEventLoop) -> "Optional[asyncio.Task[Any def _get_running_loop() -> asyncio.AbstractEventLoop: return asyncio.get_running_loop() - else: def _get_running_loop() -> asyncio.AbstractEventLoop: