diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 040957b..b4e653f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,13 +24,13 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.9.4" + rev: "v0.9.6" hooks: - id: ruff-format - id: ruff args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.4.2" # Use the sha / tag you want to point at + rev: "v3.5.0" # Use the sha / tag you want to point at hooks: - id: prettier additional_dependencies: diff --git a/tests/test_sphinx_autodoc_typehints.py b/tests/test_sphinx_autodoc_typehints.py index 6edcfcf..31e077e 100644 --- a/tests/test_sphinx_autodoc_typehints.py +++ b/tests/test_sphinx_autodoc_typehints.py @@ -98,10 +98,10 @@ class Metaclass(type): ... class HintedMethods: @classmethod - def from_magic(cls: type[T]) -> T: # type: ignore[empty-body] + def from_magic(cls) -> typing_extensions.Self: # type: ignore[empty-body] ... - def method(self: T) -> T: # type: ignore[empty-body] + def method(self) -> typing_extensions.Self: # type: ignore[empty-body] ...