From 07caa321d33857a7881a5e0a2510cba26c7bda9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Thu, 14 Apr 2016 20:53:24 +0300 Subject: [PATCH] Add comment about skipping plain Callable --- sphinx/ext/autodoc.py | 1 + 1 file changed, 1 insertion(+) 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 = '...'