Skip to content

Commit 2156242

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

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
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: "v0.1.14"
8+
rev: "v0.2.0"
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]

src/sphinx_autodoc_typehints/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def _inject_signature( # noqa: C901
710710
lines: list[str],
711711
) -> None:
712712
for arg_name in signature.parameters:
713-
annotation = type_hints.get(arg_name, None)
713+
annotation = type_hints.get(arg_name)
714714

715715
default = signature.parameters[arg_name].default
716716

0 commit comments

Comments
 (0)