Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#424)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 5, 2024
1 parent d810826 commit 2156242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.14"
rev: "v0.2.0"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion src/sphinx_autodoc_typehints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def _inject_signature( # noqa: C901
lines: list[str],
) -> None:
for arg_name in signature.parameters:
annotation = type_hints.get(arg_name, None)
annotation = type_hints.get(arg_name)

default = signature.parameters[arg_name].default

Expand Down

0 comments on commit 2156242

Please sign in to comment.