We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b34a24 commit a06a1fcCopy full SHA for a06a1fc
src/sphinx_autodoc_typehints/__init__.py
@@ -718,7 +718,7 @@ def _inject_signature( # noqa: C901
718
type_aliases = app.config["autodoc_type_aliases"]
719
720
for arg_name, arg_type in signature.parameters.items():
721
- annotation = arg_type._annotation if arg_type._annotation in type_aliases else type_hints.get(arg_name)
+ annotation = arg_type.annotation if arg_type.annotation in type_aliases else type_hints.get(arg_name)
722
723
default = signature.parameters[arg_name].default
724
0 commit comments