Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#271)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 21.11b1 → 21.12b0](psf/black@21.11b1...21.12b0)

* [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>
Co-authored-by: Andrew Svetlov <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and asvetlov authored Dec 6, 2021
1 parent c7e10db commit e5c8131
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
hooks:
- id: isort
- repo: https:/psf/black
rev: '21.11b1'
rev: '21.12b0'
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
Expand Down
2 changes: 0 additions & 2 deletions async_timeout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]":
Expand All @@ -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:
Expand Down

0 comments on commit e5c8131

Please sign in to comment.