Skip to content

Commit 08877b7

Browse files
[pre-commit.ci] pre-commit autoupdate (#437)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f0732da commit 08877b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
- id: pyproject-fmt
2626
additional_dependencies: ["tox>=4.13"]
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: "v0.2.1"
28+
rev: "v0.3.2"
2929
hooks:
3030
- id: ruff-format
3131
- id: ruff

src/sphinx_autodoc_typehints/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def _inject_rtype( # noqa: PLR0913, PLR0917
876876
lines.insert(insert_index + 1, "")
877877
else:
878878
line = lines[insert_index]
879-
lines[insert_index] = f":return: {formatted_annotation} --{line[line.find(' '):]}"
879+
lines[insert_index] = f":return: {formatted_annotation} --{line[line.find(' ') :]}"
880880

881881

882882
def validate_config(app: Sphinx, env: BuildEnvironment, docnames: list[str]) -> None: # noqa: ARG001

0 commit comments

Comments
 (0)