We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d810826 commit 2156242Copy full SHA for 2156242
.pre-commit-config.yaml
@@ -5,7 +5,7 @@ repos:
5
- id: end-of-file-fixer
6
- id: trailing-whitespace
7
- repo: https://github.com/astral-sh/ruff-pre-commit
8
- rev: "v0.1.14"
+ rev: "v0.2.0"
9
hooks:
10
- id: ruff
11
args: [--fix, --exit-non-zero-on-fix]
src/sphinx_autodoc_typehints/__init__.py
@@ -710,7 +710,7 @@ def _inject_signature( # noqa: C901
710
lines: list[str],
711
) -> None:
712
for arg_name in signature.parameters:
713
- annotation = type_hints.get(arg_name, None)
+ annotation = type_hints.get(arg_name)
714
715
default = signature.parameters[arg_name].default
716
0 commit comments