Skip to content

Commit

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

updates:
- [github.com/asottile/pyupgrade: v2.37.1 → v2.38.0](asottile/pyupgrade@v2.37.1...v2.38.0)
- [github.com/psf/black: 22.6.0 → 22.8.0](psf/black@22.6.0...22.8.0)
- [github.com/csachs/pyproject-flake8: v0.0.1a4 → v5.0.4a1.post1](csachs/pyproject-flake8@v0.0.1a4...v5.0.4a1.post1)
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](pre-commit/mirrors-mypy@v0.961...v0.971)

* Fixed mypy errors

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Grönholm <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and agronholm committed Sep 23, 2022
1 parent d9c2d9b commit bda1689
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v2.37.1
rev: v2.38.0
hooks:
- id: pyupgrade
args: [ "--py36-plus", "--keep-mock" ]

- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.8.0
hooks:
- id: black

Expand All @@ -32,12 +32,12 @@ repos:
- id: isort

- repo: https://github.com/csachs/pyproject-flake8
rev: v0.0.1a4
rev: v5.0.4a1.post1
hooks:
- id: pyproject-flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.961
rev: v0.971
hooks:
- id: mypy
additional_dependencies: [ "pytest", "trio-typing", "packaging" ]
Expand Down
2 changes: 1 addition & 1 deletion src/anyio/_backends/_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_coro(task: asyncio.Task) -> Union[Generator, Awaitable[Any]]:
from asyncio import run as native_run

def _get_task_callbacks(task: asyncio.Task) -> Iterable[Callable]:
return [cb for cb, context in task._callbacks] # type: ignore[attr-defined]
return [cb for cb, context in task._callbacks]

else:
_T = TypeVar("_T")
Expand Down
4 changes: 2 additions & 2 deletions src/anyio/_backends/_trio.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ async def __aexit__(
exc_type: Optional[Type[BaseException]],
exc_val: Optional[BaseException],
exc_tb: Optional[TracebackType],
) -> Optional[bool]:
return await self.__original.__aexit__(exc_type, exc_val, exc_tb)
) -> None:
await self.__original.__aexit__(exc_type, exc_val, exc_tb)

@property
def total_tokens(self) -> float:
Expand Down

0 comments on commit bda1689

Please sign in to comment.