summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r--sphinx/ext/autodoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index d3621e6db..d9e108eb5 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -315,6 +315,7 @@ def format_annotation(annotation):
isinstance(annotation, typing.CallableMeta) and \
getattr(annotation, '__args__', None) is not None and \
hasattr(annotation, '__result__'):
+ # Skipped in the case of plain typing.Callable
args = annotation.__args__
if args is Ellipsis:
args_str = '...'