Skip to content

Commit 6ffdf92

Browse files
[pre-commit.ci] pre-commit autoupdate (#522)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6](astral-sh/ruff-pre-commit@v0.9.4...v0.9.6) - [github.com/rbubley/mirrors-prettier: v3.4.2 → v3.5.0](rbubley/mirrors-prettier@v3.4.2...v3.5.0) * [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>
1 parent fd427dc commit 6ffdf92

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.9.4"
27+
rev: "v0.9.6"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff
3131
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
3232
- repo: https://github.com/rbubley/mirrors-prettier
33-
rev: "v3.4.2" # Use the sha / tag you want to point at
33+
rev: "v3.5.0" # Use the sha / tag you want to point at
3434
hooks:
3535
- id: prettier
3636
additional_dependencies:

tests/test_sphinx_autodoc_typehints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ class Metaclass(type): ...
9898

9999
class HintedMethods:
100100
@classmethod
101-
def from_magic(cls: type[T]) -> T: # type: ignore[empty-body]
101+
def from_magic(cls) -> typing_extensions.Self: # type: ignore[empty-body]
102102
...
103103

104-
def method(self: T) -> T: # type: ignore[empty-body]
104+
def method(self) -> typing_extensions.Self: # type: ignore[empty-body]
105105
...
106106

107107

0 commit comments

Comments
 (0)