diff --git a/sphinx/ext/autodoc/typehints.py b/sphinx/ext/autodoc/typehints.py index 501360b1500..573f5affee8 100644 --- a/sphinx/ext/autodoc/typehints.py +++ b/sphinx/ext/autodoc/typehints.py @@ -42,8 +42,6 @@ def merge_typehints(app: Sphinx, domain: str, objtype: str, contentnode: Element return if app.config.autodoc_typehints != 'description': return - if objtype == 'class' and app.config.autoclass_content not in ('init', 'both'): - return try: signature = cast(addnodes.desc_signature, contentnode.parent[0])