Skip to content

Commit e5c8131

Browse files
[pre-commit.ci] pre-commit autoupdate (#271)
* [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]>
1 parent c7e10db commit e5c8131

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/psf/black
16-
rev: '21.11b1'
16+
rev: '21.12b0'
1717
hooks:
1818
- id: black
1919
language_version: python3 # Should be a command that runs python3.6+

async_timeout/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ def _on_timeout(self, task: "asyncio.Task[None]") -> None:
227227
def _current_task(loop: asyncio.AbstractEventLoop) -> "Optional[asyncio.Task[Any]]":
228228
return asyncio.current_task(loop=loop)
229229

230-
231230
else:
232231

233232
def _current_task(loop: asyncio.AbstractEventLoop) -> "Optional[asyncio.Task[Any]]":
@@ -239,7 +238,6 @@ def _current_task(loop: asyncio.AbstractEventLoop) -> "Optional[asyncio.Task[Any
239238
def _get_running_loop() -> asyncio.AbstractEventLoop:
240239
return asyncio.get_running_loop()
241240

242-
243241
else:
244242

245243
def _get_running_loop() -> asyncio.AbstractEventLoop:

0 commit comments

Comments
 (0)