diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c25805b..741f3d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,12 +28,11 @@ repos: types: [file] types_or: [python, pyi] - repo: https://github.com/psf/black - rev: 23.10.0 + rev: 23.10.1 hooks: - id: black - language_version: python3.10 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.0 + rev: v0.1.3 hooks: - id: ruff types: [file] diff --git a/pyproject.toml b/pyproject.toml index 5c8296a..15a5931 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,8 +27,8 @@ classifiers = [ ] keywords = ["mypy", "dmypy", "idle", "extension", "development", "daemon"] dependencies = [ - "mypy~=1.6.0", - "trio~=0.22.2", + "mypy~=1.6.1", + "trio~=0.23.0", ] [project.optional-dependencies] @@ -73,7 +73,7 @@ warn_unused_ignores = true [tool.black] line-length = 79 -target-version = ['py310'] +target-version = ['py311'] [tool.ruff.isort] combine-as-imports = true diff --git a/src/idlemypyextension/tktrio.py b/src/idlemypyextension/tktrio.py index ca534e5..3c8f818 100644 --- a/src/idlemypyextension/tktrio.py +++ b/src/idlemypyextension/tktrio.py @@ -202,7 +202,7 @@ def _start_async_task( self.cancel_scope = trio.CancelScope() - @trio.lowlevel.disable_ki_protection # type: ignore[misc] + @trio.lowlevel.disable_ki_protection async def wrap_in_cancel(is_evil: bool) -> Any: value = None try: